24.10.2012 Views

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

J-Link / J-Trace User Guide (UM08001) - Microcontrollers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.3.3 Determining values for scan chain configuration<br />

When do I need to configure the scan chain?<br />

If only one device is connected to the scan chain, the default configuration can be<br />

used. In other cases, J-<strong>Link</strong> / J-<strong>Trace</strong> may succeed in automatically recognizing the<br />

devices on the scan chain, but whether this is possible depends on the devices<br />

present on the scan chain.<br />

How do I configure the scan chain?<br />

2 values need to be known:<br />

• The position of the target device in the scan chain<br />

• The total number of bits in the instruction registers of the devices before the target<br />

device (IR len).<br />

The position can usually be seen in the schematic; the IR len can be found in the<br />

manual supplied by the manufacturers of the others devices.<br />

ARM7/ARM9 have an IR len of four.<br />

Sample configurations<br />

The diagram below shows a scan chain configuration sample with 2 devices connected<br />

to the JTAG port.<br />

Examples<br />

The following table shows a few sample configurations with 1,2 and 3 devices in different<br />

configurations.<br />

Device 0<br />

Chip(IR len)<br />

TDI Device 1 TDO TDI Device 0 TDO<br />

TCK<br />

TMS<br />

TRST<br />

Device 1<br />

Chip(IR len)<br />

TDI TDO<br />

Device 2<br />

Chip(IR len)<br />

JTAG<br />

Position IR len<br />

ARM(4) - - 0 0<br />

ARM(4) Xilinx(8) - 0 0<br />

Xilinx(8) ARM(4) - 1 8<br />

Xilinx(8) Xilinx(8) ARM(4) 2 16<br />

Table 5.5: Example scan chain configurations<br />

TCK<br />

J-<strong>Link</strong> / J-<strong>Trace</strong> (<strong>UM08001</strong>) © 2004-2010 SEGGER Microcontroller GmbH & Co. KG<br />

TMS<br />

TRST<br />

TCK<br />

TMS<br />

TRST<br />

95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!