cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with JTAG scan chain

wolfgang239955_stm1
Associate II
Posted on March 20, 2009 at 03:40

Problem with JTAG scan chain

2 REPLIES 2
wolfgang239955_stm1
Associate II
Posted on May 17, 2011 at 13:05

Hi,

I've a application with two STM32F103RB. They are connected in a JTAG scan chain. I work with IAR Embedded Workbench 5.30 and the IAR jlink.

My Problem: The Emulation-Software is not able to communicate with the controller with TAP number 0. It doesn't matter which TAP number is selected, always the second controller comes in action. Same situation if I change the order of the controllers in the chain.

My settings in Options->J-Link/J-Trace:

Communication -> X USB

Interface -> X JTAG

JTAG scan chain -> X JTAG scan chain with multiple targets

TAP number: 0

0 Scan chain contains non-ARM devices

X: selected

0: not selected

Thanks

Wolfgang

😉 😉 😉

wolfgang239955_stm1
Associate II
Posted on May 17, 2011 at 13:05

I solved the problem.

The topology:

JTDI[JLINK] -> JTDI[Device1] -> JTDO[Device1]

-> JTDI[Device0] -> JTDO[Device0] -> JTDO[JLINK]

Project->Options->J-Link/J-Trace->Connection

Configuration of Device 0:

X JTAG scan chain with multiple targets

TAP number: 0

X Scan chain contains non-ARM devices

Preceeding bits: 0

Configuration of Device 1:

X JTAG scan chain with multiple targets

TAP number: 2(:-o)

X Scan chain contains non-ARM devices

Preceeding bits: 9(:-o)

(If you make any other selection the Debugger will work with device 0 !!!)