Building a JTAG Interface

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 19:35, 16 August 2006 by Dtaylor (Talk)

Jump to: navigation, search
Kurobrick.png
WARNING!

There is a possibility that you could brick your NAS with these instructions. Please make sure that you read the entire page carefully. Adding a JTAG header to the Kuro requires soldering onto the Kurobox main board and can cause catastrophic failure to the hardware, Of course, there is also the distinct possibility that you need a JTAG cable because you have already bricked your Kuro. In that case, I wouldn't worry too much about damaging your Kuro.


Building a JTAG interface cable can be accomplished in part of an evening by following these instructions. I have built 10 of these and assembled 12 kits with all parts and an etched predrilled circuit board which we are making available to the community in an effort to spur more development (sounds like a contest entry). There is a thread in the Forums for discussion and announcememnts regarding the availability of these kits. If you are interested in assembling and distributing kits or have any assembly questions, please post a note in the forum thread. If not, then I must assume you are here to assemble your kit, so lets get started.


Contents

Parts Required

In order to build one of these you will need the following parts:


Part Description Quantity Mouser Part Number Comment
100 ohm 1/8 watt resistor 5 270-100-RC Shown on component layout as 100. First 4 of 5 stripes are Brown Black Black Brown
2.2 K 1/8 watt resistor 4 270-2.2K-RC Shown on component layout as 2.2K. First 4 of 5 stripes are Red Red Black Brown
0.1uF tantalum capacitor 1 80-T350A104K035 Shown on component layout as C1.
Quad Buffer 1 511-M74HC125 Shown on component layout as 74HC125.
16 pin wire mount IDC socket 1 517-89116-0001 -
25 pin D connector 1 538-DBKL25PUTI -
D-SUB Housing 1 152-9025-E -
16 pin Header 1 517-2316-6121TG -
Printed Circuit Board 1 circuit board Order from www.expressPCB.COM. 21 boards total for $59. Single boards may also be available from one of the wiki maintainers. Board revised to attach solder side of D25 to ground. Revised board says "kuro ver 2" on it.



All of the parts save the circuit board can be obtained from Mouser Electronics. They are also available at many electrical parts suppliers. The circuit board can be purchased in quantities of 21 from www.expressPCB.com. Kits and/or single circuit boards may also be made available by one of the maintainers here.

Tools Required

15 watt (maximum) soldering iron

Diagonal cutters for trimming component leads

Thin rosin core 60/40 solder (included in kit)

Wire strippers.

Three hands (a small vice will also work)


Solder the D25 Connector

Solder the D25 connector to the circuit board. pay close attention to the orientation of the circuit board and the D25 connector. Note in the photo in the following step the side of the D25 connector with 13 pins is facing up and pin 2 (on the right in the photo) is aligned with the first pad on the circuit board. Also note that the circuit board is double sided and you must make sure that you have the same side facing up as shown in the photo below. In some cases the board may have been cut a bit short on the D25 connector edge. Just line up the ends of the pins with the top of the solder pads on the circuit board and solder it in place. A good example of this condition is in the "Install the 2.2K resistors" photo. Also note that aside from soldering the D25 plug on both sides of the board, all soldering is done on the bottom of the board.


Install the 100 OHM Resistors

Using the Component Layout, populate the board with the 100 Ohm resistors. You can also determine the locations of the 100 Ohm resistors in the photo below. Start by folding one of the leads of each resistor over so it makes a U shape (the resistor should stand on its end on the circuit board). Insert one resistor at a time, solder it in place, and trim the leads before moving on to the next resistor. If you do not insert, solder, and trim the leads one at a time you will find that there is very little space for the soldering iron and solder to fit in between the leads of the resistors. When you have soldered all 5 resistors in place and trimmed the leads move on to the next step. Note that soldering has been completed in the below photo, you just can't see the solder as it is on the opposite side of the board.


Note the location of the 100 ohm resistors and alignment of the D25 connector


Install the 2.2K Resistors

Populate the board with the 2.2K resistors. You can determine the locations of the 2.2K resistors using the Component Layout and the photo below. Again, start by folding one of the leads of each resistor over so it makes a U shape and insert, solder them in place, and trim the leads one at a time. When you have soldered all 4 resistors in place and trimmed all the leads move on to the next step.


Note the location of the 2.2K resistors.


Install the Integrated Circuit

Solder the 74hc125 Quad Buffer in place. The square pad on the circuit board marks pin one of the integrated circuit. If you are looking at the chip from the top (pins down) with the notch on the left side (as oriented in the photo below), pin one is at the lower left. Some chips may have pin one marked with a small dot. Solder two opposite corner pins to hold the chip in place and then go back and solder the remaining pins in place.


Note the the notch in the end of the 74HC125 marking pin 1. Some chips may have a small dot instead of the notch.


Install the 0.1uF Capacitor

Insert the 0.1uF capacitor in the location shown in the photo below and on the Component Layout and solder it in place. The Capacitor is polarized (it has a positive and negative lead). The lead marked with a plus should be inserted into the hole that is closest to pin 14 of IC1.


In this photo you can see the 0.1 uF capacitor. note that the positive pin is marked with a +.


Assemble the IDE Connector

Next, assemble the IDE connector to 6 strands of wire. An old hard drive or floppy drive cable works well as a source for the wire. connect the wire to pins 1, 3, 6, 7, 9, and 16 on the IDE connector. If you use a cable that doesn't have a red wire (marking pin 1) make sure to mark pin one on the connector so you don't connect it to your Kuro backwards. A red permanent marker works well for this. Note that I have made a mistake which is shown in the photo. The wire shown on pin 13 was later moved to pin 9. The wire connection points for the pins on the IDE Connector are arranged as follows:

  2   4   6   8  10  12  14  16
1   3   5   7   9  11  13  15


Attaching the wires to the IDE connector and the IDE connector with the cap in place. If your wire doesn't have a red conductor don't forget to mark pin one with a permanent marker

Attach the IDE connector Cable

Attach the other ends of the wire from the IDE connector to the circuit board using the Component Layout to locate the correct pads for the IDE connector wires. The pads are marked J1, J3, J6, J7, J9, and J16 on the Component Layout. It is a bit spaghetti like so take your time with this step. Making the wrong connection will definately cause problems and possibly bricking.


Nuvola_apps_important.png 
NOTE: THERE IS A MISSING TRACE ON THE FIRST BATCH OF PRINTED CIRCUIT BOARDS. TO FIX THIS YOU SHOULD BRIDGE FROM PIN 1 OF IC1 TO ANY OF THE SOLDERED D25 CONNECTOR PINS ON THE SOLDER SIDE OF THE BOARD (PINS 18 AND 19 ON THE D25 CONNECTOR ARE CLOSEST). THIS CAN EASILY BE ACCOMPLISHED BY STRIPPING BACK AN EXTRA 1/4" ON THE IDE CONNECTOR J16 WIRE AND USING IT TO BRIDGE TO THE D25 CONNECTOR. THIS CORRECTION IS NOT SHOWN IN ANY OF THE PHOTOS ON THIS PAGE AND IS NOT NECESSARY FOR BOARDS MARKED KURO VER 2

Inspect the Assembled Circuit

Inspect the entire circuit board for short circuits and cold solder joints. You can reheat any (or all) of the solder joints and make sure all of the connections are good and clean.


A quick once over of the solder side to check for solder bridges and cold joints can save all sorts of headaches


Button up the Cable

Place the circuit board and connector in the connector hood and close the hood making sure to screw down the strain relief over the ribbon cable. It may be necessary to trim the corners of the board off to enable it to fit inside the hood. A pair of diagonal cutters works well for this.


Here is the completed interface cable. All that is left is to close the hood.


Install the Header in the Kuro

Solder the double pin header into position on the Kuro mother board. The manufacturer of the Kuro filled the jumper holes for the Serial port with solder. Removing the solder from the jumper holes on the Kuro board is simple.


Press the tip of a 15 watt soldering iron with a good sharp tip (if the tip isn’t sharp use a file to sharpen it and tin the tip) into the hole from the back of the circuit board.

Nuvola apps important.png 
WARNING!

THIS IS VERY IMPORTANT. IN THE NEXT STEP THE BOARD SHOULD BE BETWEEN THE SOLDERING IRON AND YOUR MOUTH. FAILURE TO PLACE THESE THREE OBJECTS IN THE CORRECT ORDER WILL RESULT IN SERIOUS INJURY.



When the solder is flowing nicely, get your mouth about 1" from the front of the board and blow hard into the wet solder while at the same time removing the solder iron. You will blow the solder out of the hole leaving a hole that you can easily put a wire through.


You will also need to bridge R67 with a small piece of wire in order for the interface cable to draw operating voltage from the Kuro.

What Next

Software for use with this device can be downloaded from here.

Full instructions for building and using Openwince's JTAG tools can be found here