----------------------------------------
Date: Tue, 3 May 2011 14:07:47 +0100 From: mark@more-solutions.co.uk To: main@lists.alug.org.uk Subject: Re: [ALUG] JTAG
On 28/04/11 18:07, keithjamieson@hotmail.co.uk wrote:
JTAG is used to use a PC to program an embedded device. I have made one the parallel port of a PC to recover my Linksys WRT54G. It also, I think, can be used to debug the device.
Its a "standard" which is adopted by manufactured, althought I have not heard of the newer one you mentioned. But I have not been in this field for some time!
So is JTAG "standard" in that if I need a JTAG programming lead then any will do? When I look around a lot of them seem to refer to ARM or whatever, suggesting that the cable is specific to a certain chipset. I ordered a cheap USB JTAG cable off eBay to play with but I'm not sure whether I need to be a bit more careful about picking the right kit for the right job.
The electrical connections are the same, but the pin outs differ. I made the one for the WRT54G, see http://www.tiaowiki.com/w/Debrick_Routers_Using_JTAG_Cable And from http://www.dd-wrt.com/wiki/index.php/JTAG_pinouts I get the info <<<<<<<<<<<<<< Buffalo WBR-G54 jtag is pins 1-12 (normal jtag pinout: 3: TDI, 5: TDO, 7: TMS, 9: TCK)
| |mini-pci card
| |_______________
| 2 12 JP1
| o o o o o o |o o|
| o o o o o o |o o|
| 1 11 JP2>>>>>>>>>>>>>>>>> which appears to be the "standard" connection
2 4 6 8 10 121 3 5 7 9 11
But some do have "other" pin outs, like below have the same things on the same pins but they are numbered differently!! <<<<<<<<<<<<<<Airlink AR430W The router follows the MIPS 2.6 EJTAG Specification and has the same PIN information. But on the board the PINS are layed out as
1 2 3 4 5 6 7
14 13 12 11 10 9 8
1 - nTRST
3 - TDI
5 - TDO
7 - TMS
9 - TCK
2, 4, 6, 8, 10 - GND [you only need one GND for JTAG]
You dont need the following pins
11 - nSRST
14 - VCC
12, 13 - N/C
>>>>>>>>>>>
HTH Keith