Problem with OpenOCD and CMSIS-DAP
Posted: Mon Feb 22, 2016 10:27 am
Hi,
I am experimenting some issues trying to flash and run a Kinetis demo (RT-FREEDOM-KL25Z).
Well, I am usign CMSIS-DAP so I have created a new entry in external tools: it launches OpenOCD with this arguments:
Launching it on prompt I have chosen "target\kl25.cfg" I obtained
On flash and run I received this error
Most likely there is something wrong with debug configuration and related commands. Any suggestions?
I am experimenting some issues trying to flash and run a Kinetis demo (RT-FREEDOM-KL25Z).
Well, I am usign CMSIS-DAP so I have created a new entry in external tools: it launches OpenOCD with this arguments:
Code: Select all
-c "telnet_port 4444" -s "C:\ChibiStudio\tools\openocd\scripts" -f "interface/cmsis-dap.cfg" -f "${file_prompt}"Launching it on prompt I have chosen "target\kl25.cfg" I obtained
Code: Select all
Open On-Chip Debugger 0.10.0-dev-00200-gdb56a3b (2016-02-10-18:08)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'swd'
Info : add flash_bank kinetis kl25.flash
adapter speed: 1000 kHz
none separate
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : SWD IDCODE 0x0bc11477
Info : kl25.cpu: hardware has 2 breakpoints, 2 watchpoints
Info : MDM: Chip is unsecured. Continuing.On flash and run I received this error
Code: Select all
symbol-file C:\\ChibiStudio\\chibios161\\demos\\KINETIS\\RT-FREEDOM-KL25Z\\build\\ch.elf
Reading symbols from C:\ChibiStudio\chibios161\demos\KINETIS\RT-FREEDOM-KL25Z\build\ch.elf...done.
set remotetimeout 20
monitor reset init
"monitor" command not supported by this target.
monitor sleep 50
"monitor" command not supported by this target.
load C:\\ChibiStudio\\chibios161\\demos\\KINETIS\\RT-FREEDOM-KL25Z\\build\\ch.elf
You can't do that when your target is `None'
tbreak main
Cannot access memory at address 0x5422
continue
The program is not being run.Most likely there is something wrong with debug configuration and related commands. Any suggestions?