AnsweredAssumed Answered

Hi, I cannot use OPENOCD Debug with FRDM-K64 in kds 1.1.0, the program cannot download

Question asked by K.h. Qin Employee on Aug 12, 2014
Latest reply on Aug 13, 2014 by Erich Styger

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.

1.png

 

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.

2.png

 

But KDS 1.0.1 was fine.

 

Please help, thanks a lots!

Outcomes