Difference between revisions of "Add Jtag Port"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (thumbnail image, instead of hotlinking outside)
m (Rearrange article to reflect title)
Line 2: Line 2:
 
This document is a work in progress. It explains how to fit the internal on-chip debug (OCD) port on a Linkstation, Kuro-Box or Kuro-Box/HG to a PC interface.
 
This document is a work in progress. It explains how to fit the internal on-chip debug (OCD) port on a Linkstation, Kuro-Box or Kuro-Box/HG to a PC interface.
  
=== OCD connector ===
+
== Adding the JTAG Port ==
The internal OCD port uses an electrical standard known as JTAG/COP. The signals have to be buffered to protect the hardware from damage and we use a JTAG wiggler to do this.
+
+
Those with some electrical experience could build their own circuit, but most will opt for ordering one.
+
 
+
=== Schematics and Software to build your own ===
+
http://hri.sourceforge.net/tools/
+
 
+
=== Buy one ===
+
'''Commercial'''
+
The [http://www.macraigor.com/wiggler.htm Macraigor Wiggler] seems to be the cheapest at $150.
+
 
+
'''Hobby'''
+
Could the 20-pin [http://www.olimex.com/dev/arm-jtag.html Olimex ARM-JTAG] be modified to work with Kuro-Box?  $20.
+
 
+
 
===Locate the pads===
 
===Locate the pads===
 
The pads are labelled CN5 and can be seen just above the serial level converter (where the yellow, orange, and red wires start to split) in [http://www.kurobox.com/downloads/Hardware/IMG_1392.jpg this photo]
 
The pads are labelled CN5 and can be seen just above the serial level converter (where the yellow, orange, and red wires start to split) in [http://www.kurobox.com/downloads/Hardware/IMG_1392.jpg this photo]
Line 30: Line 16:
 
|TDO  
 
|TDO  
 
|1  
 
|1  
|  
+
|→
 
|2  
 
|2  
 
|?
 
|?
Line 37: Line 23:
 
|TDI  
 
|TDI  
 
|3  
 
|3  
|
+
|→
 
|4  
 
|4  
 
|?
 
|?
Line 43: Line 29:
 
|?
 
|?
 
|5
 
|5
|
+
|→
 
|6
 
|6
 
|?
 
|?
Line 49: Line 35:
 
|TCK
 
|TCK
 
|7
 
|7
|
+
|→
 
|8
 
|8
 
|?
 
|?
Line 55: Line 41:
 
|TMS
 
|TMS
 
|9
 
|9
|
+
|→
 
|10
 
|10
 
|?
 
|?
Line 61: Line 47:
 
|?
 
|?
 
|11
 
|11
|
+
|→
 
|12
 
|12
 
|?
 
|?
Line 67: Line 53:
 
|Vcc
 
|Vcc
 
|13
 
|13
|
+
|→
 
|14
 
|14
 
|?
 
|?
Line 73: Line 59:
 
|?
 
|?
 
|15
 
|15
|
+
|→
 
|16
 
|16
 
|Gnd
 
|Gnd
Line 86: Line 72:
 
|TDO  
 
|TDO  
 
|1  
 
|1  
|  
+
|→
 
|2  
 
|2  
 
|QACK
 
|QACK
Line 93: Line 79:
 
|TDI  
 
|TDI  
 
|3  
 
|3  
|
+
|→
 
|4  
 
|4  
 
|TRST (Neg)
 
|TRST (Neg)
Line 99: Line 85:
 
|HALTED
 
|HALTED
 
|5
 
|5
|
+
|→
 
|6
 
|6
 
|Vcc Target
 
|Vcc Target
Line 105: Line 91:
 
|TCK
 
|TCK
 
|7
 
|7
|
+
|→
 
|8
 
|8
 
|CKSI  
 
|CKSI  
Line 111: Line 97:
 
|TMS
 
|TMS
 
|9
 
|9
|
+
|→
 
|10
 
|10
 
|??
 
|??
Line 117: Line 103:
 
|SRST (Neg)
 
|SRST (Neg)
 
|11
 
|11
|
+
|→
 
|12
 
|12
 
|Gnd (??)
 
|Gnd (??)
Line 123: Line 109:
 
|HRST (Neg)
 
|HRST (Neg)
 
|13
 
|13
|
+
|→
 
|14
 
|14
 
|NC (key)
 
|NC (key)
Line 129: Line 115:
 
|CKSO  
 
|CKSO  
 
|15
 
|15
|
+
|→
 
|16
 
|16
 
|Gnd
 
|Gnd
Line 157: Line 143:
 
  15  CKSO      Not Connected on the 8421
 
  15  CKSO      Not Connected on the 8421
 
  16  GROUND    System Ground
 
  16  GROUND    System Ground
 +
 +
== On-Chip Debug (OCD) connector ==
 +
The internal OCD port uses an electrical standard known as JTAG/COP. The signals have to be buffered to protect the hardware from damage and we use a JTAG wiggler to do this.
 +
 +
Those with some electrical experience could build their own circuit, but most will opt for ordering one.
 +
 +
=== Schematics and Software to build your own ===
 +
http://hri.sourceforge.net/tools/
 +
 +
=== Buy one ===
 +
Commercial - The [http://www.macraigor.com/wiggler.htm Macraigor Wiggler] seems to be the cheapest at $150.
 +
 +
Hobby - Could the 20-pin [http://www.olimex.com/dev/arm-jtag.html Olimex ARM-JTAG] be modified to work with Kuro-Box?  $20.
  
  
 
[[Category:Hardware]]
 
[[Category:Hardware]]
 
[[Category:HowTo]]
 
[[Category:HowTo]]

Revision as of 02:13, 5 July 2006

Cable required

This document is a work in progress. It explains how to fit the internal on-chip debug (OCD) port on a Linkstation, Kuro-Box or Kuro-Box/HG to a PC interface.

Contents

Adding the JTAG Port

Locate the pads

The pads are labelled CN5 and can be seen just above the serial level converter (where the yellow, orange, and red wires start to split) in this photo

Connector Pin-outs

In order to use this port, you should add the 10K series VIO resistor R67 and a 4-way 1K resistor pack at RA11. It may be possible to use some functionality without these components.

If you know which set of pin-outs that LinkStation/Kuro-Box uses, please update this page with the details.

According to Baulab the following pins are identified

TDO 1 2 ?
TDI 3 4 ?
? 5 6 ?
TCK 7 8 ?
TMS 9 10 ?
? 11 12 ?
Vcc 13 14 ?
? 15 16 Gnd


The same page also contains the schematics, some pictures of the assembled jtag cable and software needed. This cable can be used without adding the additional components.

According to http://www.abatron.ch/Files/ManAccessCOP-2000C.pdf and http://www.freescale.com/files/soft_dev_tools/doc/user_guide/CWH-UTP-UG.pdf the following pins are used for a PPC COP/JTAG interface:

TDO 1 2 QACK
TDI 3 4 TRST (Neg)
HALTED 5 6 Vcc Target
TCK 7 8 CKSI
TMS 9 10 ??
SRST (Neg) 11 12 Gnd (??)
HRST (Neg) 13 14 NC (key)
CKSO 15 16 Gnd
Pin Name       Description
 1  TDO        JTAG Test Data Out
 2  QACK       Not Needed
 3  TDI        JTAG Test Data In
 4  TRST       JTAG Test Reset
 5  HALTED     Not Needed 
 6  Vcc Target 1.8 – 5.0V:
               This is the target reference voltage. It indicates that the target has power and it is also used
               to create the logic-level reference for the input comparators. It also controls the output logic
               levels to the target. It is normally fed from Vdd I/O on the target board.
               3.0 – 5.0V:
               This input is used to detect if the target is powered up. If there is a current
               limiting resistor between this pin and the target Vdd, it should be 100 Ohm or less.
 7  TCK        JTAG Test Clock
 8  CKSI       Not Connected ??
 9  TMS        JTAG Test Mode Select
10  <reseved>
11  SRESET     Soft-Reset
12  GROUND     System Ground
13  HRESET     Hard-Reset
14  <reseved>
15  CKSO       Not Connected on the 8421
16  GROUND     System Ground

On-Chip Debug (OCD) connector

The internal OCD port uses an electrical standard known as JTAG/COP. The signals have to be buffered to protect the hardware from damage and we use a JTAG wiggler to do this.

Those with some electrical experience could build their own circuit, but most will opt for ordering one.

Schematics and Software to build your own

http://hri.sourceforge.net/tools/

Buy one

Commercial - The Macraigor Wiggler seems to be the cheapest at $150.

Hobby - Could the 20-pin Olimex ARM-JTAG be modified to work with Kuro-Box? $20.