LPC176x JTAG connector [OpenOCD + Amontec Tiny]

164 views
Skip to first unread message

drasko

unread,
Jun 10, 2011, 7:26:48 PM6/10/11
to MicropendousX
Hi,
looking at the pictures of the MicropendousX with LPC176x, I can see
that it has Cortex Debug Header for JTAG/SWD.

Now, I was wondering if allows only Serial Wire Debug, or standard
JTAG debug can be done over it.

The reason I am asking is that I have Amontec JTAG Key Tiny dongle
(http://www.amontec.com/jtagkey-tiny.shtml) which has 20 pin
connector. I am using it with OpenOCD, which does not yet support SWD.

Basically, can these boards be debugged "the good old way" ?

Would I need some kind of adapter, or I can just plug dongle half-way
(I do not know signal positions on the board)...

BR,
Drasko

drasko

unread,
Jun 10, 2011, 9:22:23 PM6/10/11
to MicropendousX
Hi,
actually, after some more research I found out that LPC17xx support
both standard JTAG and SWD. This is from the Product Data Sheet
feature list :
- Standard JTAG test/debug interface for compatibility with existing
tools. Serial Wire Debug and Serial Wire Trace Port options.

I guess that this is also an explanation why this NGX board that I
mentioned (http://shop.ngxtechnologies.com/product_info.php?
cPath=21&products_id=65) can have 20 pin JTAG connector.

I guess some adaptor is needed after all, something like this :
http://www2.embedded-projects.net/index.php?page_id=177 or this :
http://www.mcu-raisonance.com/~rlink-connection-adapter-for-arm-microcontrollers__smart-cards__product~product__T017:4m7pktcp47ur.html

From the schematics I have idea that it is pure signal (pins)
connecting and nothing else...

Am I correct on all of this ?

Thanks and best regards,
Drasko

Opendous Inc.

unread,
Jun 10, 2011, 9:26:22 PM6/10/11
to MicropendousX
The LPC176x supports JTAG. It is the LPC13xx that is SWD-only but
had documentation errors early on that made it look like it was JTAG-
able.

I have successfully JTAG'ed my MicropendousX-176x board using
OpenOCD using my FT2232H JTAG adapter which has the same FT2232 IC and
pinout as the JTAGKey:
http://www.opendous.org/JTAG

OpenOCD will soon support SWD and you can start Open Source
debugging with SWD now:
http://sourceforge.net/apps/trac/libswd

>JTAG Key which has 20 pin ... some kind of adapter

The Cortex Debug header is 10 pin (5x2) 1.27x1.27mm (0.05"x0.05")
vs. the ARM connector's 20 pin (10x2) 2.54x2.54mm (0.1"x0.1") so they
are not compatible and pins are not in the same locations. However,
you can use flying wires or a simple connector adapter as they are
electrically compatible:

http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=726-1193-ND
http://code.google.com/p/opendous/source/browse/trunk/Current_Designs/ARM-JTAG_to_Cortex-JTAG/

Casainho

unread,
Jun 11, 2011, 4:36:09 AM6/11/11
to microp...@googlegroups.com
I can confirm that LPC1768 have JTAG for debug and flash -- I am being
doing that (including right now, with NGX blueboard).

I also have a board with LPC1754 that works just in the same way
LPC1768 works :-)

It's good to know that finally SWD will work on OpenOCD 0.5!!! I want
to use it for the cheap LPC11xx. Matt, if you have the files for
OpenOCD to the LPC11xx, please share ;-)

Than you.

Drasko DRASKOVIC

unread,
Jun 11, 2011, 9:38:30 AM6/11/11
to microp...@googlegroups.com
On Sat, Jun 11, 2011 at 3:26 AM, Opendous Inc. <open...@gmail.com> wrote:
>  The LPC176x supports JTAG.  It is the LPC13xx that is SWD-only but
> had documentation errors early on that made it look like it was JTAG-
> able.
>
>  I have successfully JTAG'ed my MicropendousX-176x board using
> OpenOCD using my FT2232H JTAG adapter which has the same FT2232 IC and
> pinout as the JTAGKey:
> http://www.opendous.org/JTAG

Wow, this looks great !

It has both 20-pin and SWD connectors, and as an addition Xilinx JTAG
header. I will be very much interested in this, as I have one Nexys2
board (http://www.digilentinc.com/Products/Detail.cfm?Prod=NEXYS2). So
fat I have been using Digilent's XUP USB JTAG programming cable
(http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,395,716&Prod=XUP-USB-JTAG),
but I am looking for an open source replacement, as these cables are
too expensive. Do you think that this Nexys2 (which has Spartan-3E
FPGA) board can be programmed with your JTAG, and are you aware of
some open-source host programs that can allow this (I saw that UrJTAG
maybe can do this, but I can port things later to OpenOCD maybe. That
would be great!)


>  OpenOCD will soon support SWD and you can start Open Source
> debugging with SWD now:
> http://sourceforge.net/apps/trac/libswd
>
>>JTAG Key which has 20 pin ... some kind of adapter
>
>  The Cortex Debug header is 10 pin (5x2) 1.27x1.27mm (0.05"x0.05")
> vs. the ARM connector's 20 pin (10x2) 2.54x2.54mm (0.1"x0.1") so they
> are not compatible and pins are not in the same locations.  However,
> you can use flying wires or a simple connector adapter as they are
> electrically compatible:
>
> http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=726-1193-ND
> http://code.google.com/p/opendous/source/browse/trunk/Current_Designs/ARM-JTAG_to_Cortex-JTAG/

Thank you very much for these links, things are much clearer now !

Best regards,
Drasko

Tim michals

unread,
Jun 11, 2011, 2:21:14 PM6/11/11
to microp...@googlegroups.com
$34.95


From: Drasko DRASKOVIC <drasko.d...@gmail.com>
To: microp...@googlegroups.com
Sent: Saturday, June 11, 2011 8:38 AM
Subject: Re: LPC176x JTAG connector [OpenOCD + Amontec Tiny]
Reply all
Reply to author
Forward
0 new messages