User Tools

Site Tools


wrtu54g-tm:jtag

This is an old revision of the document!


The Long Story

I managed to get the 5×2 pin header, and a “jtag cable” from a previous employer. I haven't soldered in awhile so I messed with it awhile trying to desolder all the points to attach the 10-pin header. Well, turns out, as far as I know, that the ground connections are not drilled through. So I attached ground to the serial port. Then I look at the “jtag cable”. It's not wired at all like any JTAG I saw mentioned. Well, Bob did say he tried to make his own once and it didn't work. I guess that's the one he gave me. Don't know why, he's got several. One is USB, wish I borrowed that one now..

So I re-wire the jtag cable to use the “DLC5” aka “very poor man's jtag” pin-out. There are resistors on our PCB which should be plenty, but I added what I had and they're like 450ohm and seem to work… Then, software… tjtag would be awesome if it worked. It doesn't seem to use DLC5 correctly for me…? Then I noticed I need nTRST at 3.3v, so I tied that to the serial port as well. so our 14-pin JTAG has pin1 going straight to 3.3v (shoulda used a 100ohm resistor they say), and next 4 pins down the left side going to parallel port pins 2,13,3,4, and parallel port's ground going to serial port ground…

So I tried tjtag again and no dice. wtf. but some italian program for AR7 noticed the CPU ID as “1” so I searched and found UrJTAG. First cable dlc5 parallel 0x378 then detect then include admtek/adm5120/adm5120 and finally you should be able to use flashmem 0x3cf00000 uboot.bin. Of course, this is after you find libusb0.dll and ftd25xx.dll so the program will run. Neither library being utilized… wtf! But works better than getting cygwin for the old jtag tools ports.. It's flashing now, an hour later 64kb is done. I'll re-write this if it works.. I'm going to bed. What a day! All to save a $15 router. hah.

ugh

wrtu54g-tm/jtag.1289273626.txt.gz · Last modified: 2023/11/04 22:29 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki