AnsweredAssumed Answered

Debugging on FRDM-K64F on KDS 1.1.1

Question asked by Paul DeRocco on Aug 28, 2014
Latest reply on Feb 9, 2016 by Aaron Campbell

I've read everything I could find here, and a bunch elsewhere on the web, about how to debug FRDM-K64F code over its USB interface, to no avail. Somewhere I read that you're supposed to use the "GDB OpenOCD Debugging" choice in the Debug Configuration dialog. Initially, I got a popup saying "Error in services launch sequence. OpenOCD requires some -c or -f configuration options to start." Somewhere else I found an explanation that I needed to add "-f  kinetis.cfg" to the Debugger config options. Now it doesn't pop anything up, but it fails to load anyway. Instead, the OpenOCD console shows the following messages:

 

Open On-Chip Debugger 0.8.0-dev-dirty (2014-08-20-11:07)

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'

Error: unable to open CMSIS-DAP device

Error: unable to init CMSIS-DAP driver

Error: Error selecting 'cmsis-dap' as transport

Runtime Error: C:/Freescale/KDS_1.1.1/openocd/bin/..//scripts/kinetis.cfg:3:

in procedure 'script'

at file "embedded:startup.tcl", line 58

in procedure 'interface' called at file "C:/Freescale/KDS_1.1.1/openocd/bin/..//scripts/kinetis.cfg", line 3

 

So I'm stumped. The FRDM users guide says nothing about how to debug. Is there some app note somewhere that I've missed? What do I do next?

Outcomes