HI, KDS experts
I download the KDS 1.1.0 version last week, create a simple project of FRDM-K64 try to debug via OPENOCD, CMSIS-DAP, strangely it's failed but back to KDS 1.0.1 there is no such issue.
The program cannot download in chip but in KDS the state is RUN without stop before main, meantime, the green-led of SDA on board is blinking. but program still hasn't downloaded.
below is my setting and failed infos
Open On-Chip Debugger 0.8.0-dev-00003-g0c51359 (2014-07-25-13:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'cmsis-dap'
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : add flash_bank kinetis k64.flash
cortex_m reset_config sysresetreq
adapter speed: 50 kHz
Warning - This configuration file is deprecated and will be removed in future versions, use kinetis.cfg instead.
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
Info : CMSIS-DAP: Interface ready
Info : clock speed 50 kHz
Info : IDCODE 0x2ba01477
Info : k64.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection from 3333
target state: halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x61000003 pc: 0x00000568 msp: 0x1fffc3d0
Info : Probing flash info for bank 0
Warn : acknowledgment received, but no packet pending
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000530 msp: 0x1fffc400
semihosting is enabled
Warn : Any changes to flash configuration field will not take effect until next reset
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000530 msp: 0x20000920, semihosting
and this is my debug configuration of OPENOCD
About config options, I use "-f kinetis.cfg" before, but make no sense,too.
But KDS 1.0.1 was fine.
Please help, thanks a lots!
Further comment on your debug screenshot: what does it show if you press the 'pause' button.
I suspect you might not have allocated enough HEAP space in the linker file, and that the program is stuck in the startup code?
Erich
Hello,
with KDS V1.1.0, you really should use
-f kinetis.cfg
I have posted an example in this thread using printf:
First impression with KDS 1.1.0 Can't Debug FRDM-K64F with OpenOCD/CMSIS-DAP
which has all the debug configurations (Segger/J-Link/OpenOCD) configured.
Can you try it?
Additionally, try to power-unpower-power the FRDM-K64F board.
I hope this helps,
Erich