JTAG on PandaBoard with OpenOCD and JTAGKEY2

434 views
Skip to first unread message

yannic...@hotmail.com

unread,
Nov 7, 2011, 10:10:04 AM11/7/11
to pandaboard, yannick...@teledynedalsa.com
I got no luck so far trying to connect to the JTAG port of the
PandaBoard using OpenOCD 0.5.0 (Win32) and Amontec JTAGKEY2.

I've downloaded a pre-built version of OpenOCD 0.5.0 from www.freddiechopin.com
and I'm invoking OpenOCD with the included cfg files (board
\ti_pandaboard.cfg, interface\jtagkey2.cfg, target\omap4430.cfg). I
have installed LibUSB-Win32 and JTAGKEY2 drivers. I have built a cable
to connect the JTAGKEY2 directly to the PandaBoard (VREF>VIO_1V8,
TRST_N>H_JTAG_NTRST, TDI>H_JTAG_TDI, TMS>H_JTAG_TMS, TCK>H_JTAG_RTCK,
TDO>H_JTAG_TDO, GND>GND). I have no SD-Card inserted nor any other
bootable media.

So far I've changed two things in the CFG files: I'm using
"adapter_khz 6000" instead of "jtag_rclk 6000" because the jtag_rclk
command causes an error. I've changed JRC_TAPID to 0x4b95c02f because
I have OMAP4430 ES 2.2.

The result is that after finding/enabling the JRC, DAP and M30,
OpenOCD gives a warning saying "Warn : Invalid ACK 0x6 in JTAG-DP
transaction" and then polling target continues failing forever. This
seems like the exact same issue described in the following Ubuntu bug
report:

https://bugs.launchpad.net/ubuntu/+source/x-loader/+bug/784626

I don't know what to do next. I don't understand how a bad x-loader
from Ubuntu could be related to my issue since I'm running Windows XP
SP3.

Any idea? Has anyone succeeded with a similar setup?

Thanks,
Yan.

Nipuna Gunasekera

unread,
Nov 8, 2011, 9:28:10 PM11/8/11
to panda...@googlegroups.com, yannick...@teledynedalsa.com
Haven't used the Amontec JTAGkey2 but please see if the below link helps as others have used openocd:  http://omappedia.org/wiki/PandaBoard_JTAG_Debugging

-Nipuna

yannic...@hotmail.com

unread,
Nov 9, 2011, 8:32:23 AM11/9/11
to pandaboard
Thank you Nipuna,

Yes, I had looked at that page already and it does not help. In the
mean time, I have found another interesting post on the web:

http://dangerousprototypes.com/forum/viewtopic.php?t=2366&p=22512

It seems that the pre-compiled Win32 version of OpenOCD 0.5.0 from
Feddie Chopin just won't work. I'd have to build OpenOCD from source.
Unfortunately I'm not much of a Linux guy and this is quite a
challenge for me. I've found a couple of procedures that explain how
to build it using Cygwin but I always run into errors which are time
consuming.

Anybody knows another site where I could download a Win32 executable
for OpenOCD 0.5.0?

Thanks,
Yan.

yannic...@hotmail.com

unread,
Nov 9, 2011, 10:02:06 AM11/9/11
to pandaboard
It works! The error was indeed related to the OpenOCD 0.5.0 win32
executable.
I was able to re-build it myself by following the procedure described
on this site:

http://www.tincantools.com/wiki/Compiling_OpenOCD_WinXP

Yan.

Bill Traynor

unread,
Nov 9, 2011, 10:05:26 AM11/9/11
to panda...@googlegroups.com
TCT for the win!  You should thank them by purchasing a Flyswatter2 ;)
 


Yan.

keeran k

unread,
Dec 24, 2012, 10:07:28 AM12/24/12
to panda...@googlegroups.com, btra...@gmail.com
Yan, and others,

Regarding the JTAG conneciton - Do we need RTCK pin to be connected on to pandaboard? How significant it is?

Thanks,

Bill Traynor

unread,
Dec 24, 2012, 10:25:27 AM12/24/12
to panda...@googlegroups.com
On Mon, Dec 24, 2012 at 10:07 AM, keeran k <kee...@gmail.com> wrote:
Yan, and others,

Regarding the JTAG conneciton - Do we need RTCK pin to be connected on to pandaboard? How significant it is?

I'm not sure I understand the questions relative to the subject line and the content of the email below.  This appears to be a reply to a thread from over 1 year ago.  Are you using the Flyswatter2 dongle or the JTAGKEY2 dongle?  

From what I understand, you do not need to mess with the RTCK on the Panda.  Just connect the dongle to the board and use OpenOCD as you normally would.

keeran k

unread,
Dec 24, 2012, 11:01:24 AM12/24/12
to panda...@googlegroups.com, btra...@gmail.com
Initially, thought to create separate thread, sorry if i have created confusion.

Question - I was having my old 20 pin ARM JTAG - trying to use it on my Pandaboard after sometime now. When I verified the pin compatibles, RTCK is additional in panda layout, where as my JTAG board doesnt have RTCK. From the reply, it looks like I cant use my existing JTAG board (even with tickering to create 20 to 14 pin cable :(

Am left out with option to buy busblaster.

Nipuna Gunasekera

unread,
Dec 27, 2012, 8:43:12 AM12/27/12
to panda...@googlegroups.com
I believe RTCK is only significant if you're using Code Composer Studio (CCS).  Others like Lauterbach's TRACE32 will not care about that signal.  Since your emulator has a "20 pin ARM" connector...you will need an adapter to connect to the "14 pin TI" header on the pandaboard.

See below table:
http://processors.wiki.ti.com/index.php/JTAG_Connectors#Adapters  (LA-7748 seems to be the correct one you will need based on your description)
--

Best Regards -Nipuna

keeran k

unread,
Dec 27, 2012, 1:16:05 PM12/27/12
to panda...@googlegroups.com
My initial try with breadboard wire connection (20 to 14 pin mapping adapter) doesnt work out with openocd.

Meanwhile,
I came across this articule on JTAG for multicore TI ARM, while trying to understand RTCK significance.

www.ti.com/lit/ml/sprp603/sprp603.pdf

IN my own words:
It states single core ARM CPU can have adaptive clocking (daisy chain JTAG mechanism ) is fine, where as for multi-core, one needs debugger with dynamic chain TAP handling, ability to interface difference ARM chips based on RTCK frequencies.

Thanks...
Reply all
Reply to author
Forward
0 new messages