RIoT Board JTAG connection with ARM-USB-TINY-H

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RIoT Board JTAG connection with ARM-USB-TINY-H

44,205 Views
timofeykomarov
Contributor II

Hello, guys!

I've RIoT board with i.MX 6Solo CPU. This board has 10-pin JTAG. To debug it I'd like to use Olimex ARM-USB-TINY-H and Olimex ARM-JTAG-20-10 connector. When I run OpenOCD (v 0.9.0) I get the following message:

openocd -f interface/olimex-arm-usb-tiny-h.cfg -f target/imx6.cfg

Open On-Chip Debugger 0.9.0 (2016-03-04-00:25)

Licensed under GNU GPL v2

For bug reports, read

    http://openocd.org/doc/doxygen/bugs.html

Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

Warn : imx6.sdma: nonstandard IR value

adapter speed: 1000 kHz

Info : clock speed 1000 kHz

Error: JTAG scan chain interrogation failed: all zeroes

Error: Check JTAG interface, timings, target power, etc.

Error: Trying to use configured scan chain anyway...

Error: imx6.dap: IR capture error; saw 0x00 not 0x01

Warn : Bypassing JTAG setup events due to errors

Warn : Invalid ACK 0 in JTAG-DP transaction

...

So, it seems not to connect at all.

Switching to FTDI driver doesn't help.

I'm not a specialist in JTAG (I am a software guy), so I can't solve the problem by myself. The connection seems to be OK, i've tried to change board, JTAG-adapter and 20-10 connector (I got a pair of each) - nothing helps. I don't see any error in pinout.

Can anyone help me? Any ideas?

Thanks in advance!

PS:

I've attached all the schematics files from Olimex and RIoTboard websites to save your time.

Labels (1)
0 Kudos
Reply
5 Replies

43,208 Views
timofeykomarov
Contributor II

Hello guys!

Thank you Igor, I've solved the problem in another way.

So, the problem was in ARM-JTAG-20-10, I had to connect its pin 3 of the 20-pin port to pin 9 of the 10-pin port. After this operation I've started debugging.

But 5 minutes after I found another problem - gdb with "info registers" command shows wrong register values (very old ones), it can't update them. However, OpenOCD through telnet (or just "monitor reg" in gdb) shows right values. Has anyone come across such an issue?

Thanks in advance!

43,208 Views
vsiles
Senior Contributor I

Dear timofeykomarov

I have a similar problem with my i.MX6Q Lite from boundary devices: openocd complains with "all zeroes".

How did you find that you needed to connect pin 3 of 20-pin port to pin 9 of 10-pin port ?

Best,

Vincent

0 Kudos
Reply

43,208 Views
timofeykomarov
Contributor II

Hi, vsiles​ !

Sorry, for providing no answer for such a long period of time - I've been on vacation.

I've found some information about problems with Olimex ARM-JTAG-20-10. Someone wrote that this connector has a bit different pinout than the one which had been used successfully - the problem was in those particular pins. Please, take a look at pdf-files in my very first post of this thread.

PS:

The second problem mentioned by me is nothing, just my fault. It operates like a charm.

43,208 Views
vsiles
Senior Contributor I

After a couple of question on IRC and reading answers here, I realized my adapter had the same pin layout issue. We have ordered an adapter from BD and now it works perfectly.

Thank you for the feedback !

0 Kudos
Reply

43,208 Views
igorpadykov
NXP Employee
NXP Employee

Hi Timofey

seems jtag chain should be configured, please check

Chapter 7 Configuring JTAG Tools i.MX6 System Development User’s Guide

http://cache.freescale.com/files/32bit/doc/user_guide/IMX6DQ6SDLHDG.pdf

Suggest to post on Olimex forum about OCD usage with ARM-USB-TINY-H.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------