Olimex Support Forum

ARM => JTAG => Topic started by: thomasl on March 17, 2016, 01:31:54 PM

Title: ARM-USB-OCD-H and FRDM-K64F
Post by: thomasl on March 17, 2016, 01:31:54 PM
Dear all,

I have a weird problem with my Kinetis board. I use k64 configuration files from here: https://community.freescale.com/servlet/JiveServlet/download/409196-1-276040/scripts.zip
with OpenOCD 0.9.0. I start it on the console as follows:
openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f interface/ftdi/olimex-arm-jtag-swd.cfg -f target/k60.cfg -c "init; reset halt" and get back:
Open On-Chip Debugger 0.9.0 (2016-02-17-11:28)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : FTDI SWD mode enabled
Info : add flash_bank kinetis k60.flash
adapter speed: 1000 kHz
none separate
cortex_m reset_config sysresetreq
Info : clock speed 1000 kHz
Info : SWD IDCODE 0x2ba01477
Info : k60.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : MDM: Chip is unsecured. Continuing.
Info : MDM: Chip is unsecured. Continuing.
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x000004d0 msp: 0x20030000


So far so good and I don's see anything ugly here. Then I start my gdb and print "target remote localhost:3333", what ends in bunch of errors.

Info : accepting 'gdb' connection on tcp/3333
Error: MCU is unsupported
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected


I don't want to believe, that this generic Cortex-M4 MCU is not supported. Or am I doing something very wrong?

Thank you!
Title: Re: ARM-USB-OCD-H and FRDM-K64F
Post by: JohnS on March 19, 2016, 01:03:51 PM
Not supported by what?  (You should post on a relevant place.  So far as you put, the JTAG device works.)

I suggest you try gdb or oocd places...

John
Title: Re: ARM-USB-OCD-H and FRDM-K64F
Post by: LubOlimex on April 01, 2016, 08:47:48 AM
Hey,

The command line seems proper. Your GDB approach also.

Did you try with the default script for the target in the OpenOCD? There is a script k60.cfg in "...\scripts\target".

I also recommend you to test with a newer build of OpenOCD. You can get such from Freddie Chopin's web site (OpenOCD dev section).

Finally, if the problem persists it might be a better idea to check and post in the OpenOCD mail list - the chances for solution are higher there.

Best regards,
Lub/OLIMEX
Title: Re: ARM-USB-OCD-H and FRDM-K64F
Post by: thomasl on April 05, 2016, 10:11:10 AM
Thank you for support. Since I am not proficient with writing configuration scripts I'll go for some other SWD/JTAG tool.
Title: Re: ARM-USB-OCD-H and FRDM-K64F
Post by: JohnS on April 05, 2016, 11:42:19 AM
Why not ask on Oocd ML (mailing list)?  Post -d3 output log.

There are people who use Kinetis stuff there.

John