Topic : RLink in Chain with STM32 and CPLD

Forum : ARM

Original Post
Post Information Post
January 19, 2008 - 4:37pm
Guest

How do I configure RLink when there is a MCU and CPLD in the chain.

Chain is: RLink TDI -> MCU TDI, MCU TDO -> CPLD TDI, CPLD TDO Rlink TDO.

When launching debug, I get an error message "Wrong ID code detected: Expected 0x2BA00477, read: 0x774008EE". I assume that the code detected is this of the CPLD.

Thanks

Replies
Post Information Post
+1
0
-1
January 21, 2008 - 9:49am
Raisonance Support Team

Hi,

First, you must know the length of the IR register of the CPLD.
It should be in the CPLD's documentation.
If not, ask the CPLD's manufacturer.

Then, configure RIDE or RFlasher like this (assuming the CPLD contains only one JTAG TAP):
* uncheck "single device"
* Type...
DRB = 0
IRB = 0
DRA = 1
IRA =

Of course, if the CPLD contains several JTAG TAPs, it is more complex than this: DRA should be set to the number of TAPs, and IRA to the sum of the lengths of the TAPs.

You will find more information on this in the GettingStartedARM documentation.

Best Regards,

Vincent