Olimex Support Forum

ARM => JTAG => Topic started by: dajimeg07 on May 15, 2014, 02:26:09 PM

Title: Problems with arm-usb-ocd and TWR-K60N512
Post by: dajimeg07 on May 15, 2014, 02:26:09 PM
Hi,
I'm trying to program the flash of the TWR-K60N512 by the debugger arm-usb-ocd and openocd but I have the next error. Any solution for that??

C:\openocd-0.7.0\bin>openocd-0.7.0.exe -f openocd.cfg
Open On-Chip Debugger 0.7.0 (2013-05-05-10:41)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
cortex_m3 reset_config sysresetreq
adapter speed: 50 kHz
Info : add flash_bank kinetis pflash.0
Info : add flash_bank kinetis pflash.1
Info : clock speed 50 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: k60.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
START...
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Polling target k60.cpu failed, GDB will be halted. Polling again in 100ms
Polling target k60.cpu failed, GDB will be halted. Polling again in 300ms
Polling target k60.cpu failed, GDB will be halted. Polling again in 700ms
Polling target k60.cpu failed, GDB will be halted. Polling again in 1500ms
Polling target k60.cpu failed, GDB will be halted. Polling again in 3100ms
Polling target k60.cpu failed, GDB will be halted. Polling again in 6300ms
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: JohnS on May 15, 2014, 04:25:24 PM
Try oocd 0.8.0 and hope it works.  If not, post to oocd ML with -d3 log.

John
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: dajimeg07 on May 15, 2014, 04:43:29 PM
I have tried with openocd-0.8.0 and I have the same problem
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: JohnS on May 15, 2014, 07:23:38 PM
Rest of my post applies.

John
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: dajimeg07 on May 15, 2014, 07:32:27 PM
what do you mean? I don't understand you
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: JohnS on May 16, 2014, 10:12:26 AM
About oocd ML.

John
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: dajimeg07 on May 16, 2014, 10:23:56 AM
I'm new with openocd and I don't know what is oocd ML can you give me a link or explain me abou that.
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: JohnS on May 16, 2014, 03:27:06 PM
ML = mailing list

Details in the OpenOCD README file.

John
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: dajimeg07 on May 16, 2014, 05:59:29 PM
Ok, but it's not a solution for my problem
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: JohnS on May 16, 2014, 08:04:25 PM
If you don't report it they likely won't fix it.  Your call.

John
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: dajimeg07 on May 16, 2014, 08:27:51 PM
Finally I have solved this. The problem was that the TWR-K60N512 have a jtag connector of 20 pin but actually use this connector like a 10 pin jtag. 
http://www.google.de/imgres?imgurl=http://www.keil.com/support/man/docs/ulink2/ulink2_connector_20_10pin_swm.png&imgrefurl=http://www.keil.com/support/man/docs/ulink2/ulink2_hw_connectors.htm&h=185&w=343&tbnid=YqJDfEDkf8Uf_M:&zoom=1&tbnh=90&tbnw=167&usg=__3kKuOmKoM_JWZe7LX6I8WHSMZR0=&docid=bOkrzpVobMu_hM&sa=X&ei=BD52U8edGIudqAamoIHgAw&ved=0CD0Q9QEwAA&dur=414
Title: Re: Problems with arm-usb-ocd and TWR-K60N512
Post by: JohnS on May 16, 2014, 09:24:54 PM
Wow - that's odd - well discovered!

John