# Error validating JTAG scan chain \*Amontec Chameleon OCDr98

**URL:** <https://community.sparkfun.com/t/error-validating-jtag-scan-chain-amontec-chameleon-ocdr98/2744>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [September 21, 2006, 8:25am UTC](https://community.sparkfun.com/t/error-validating-jtag-scan-chain-amontec-chameleon-ocdr98/2744 "2006-09-21T08:25:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![armsrule](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@armsrule](https://community.sparkfun.com/u/armsrule)\
**Post date:** [September 21, 2006, 8:25am UTC](https://community.sparkfun.com/t/error-validating-jtag-scan-chain-amontec-chameleon-ocdr98/2744/1 "2006-09-21T08:25:13Z")

</div>

Hi,

First thank you very much Dominic for your hardwork.

I recently purchased an Amontec Chameleon Pod and an Olimex LPC2103 dev board. I have loaded “amontec\_jtag\_accelerator\_051211.amtsvf” into the Chameleon POD.

Using Cygwin (Win2000), I have checked out OpenOCD from svn, rev 98, and compiled it succesfully; I used ./configure --enable-parport --enable-amtjtagaccel

I am using the chameleon.cfg file from the docs folder included with r98

When I load OpenOCD I get the following:

S:\TEMP\cygwin\_temp\_build\trunk\src\>openocd -d3 -f chameleon.cfg

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-09-07 20:00 CEST)

Debug: jtag.c:1209 jtag\_init():

Warning: parport.c:367 parport\_init(): No parport port specified, using default

‘0x378’ (LPT1)

Debug: parport.c:373 parport\_init(): requesting privileges for parallel port 0

x378…

Debug: parport.c:383 parport\_init(): …privileges granted

Debug: parport.c:210 parport\_reset(): trst: 0, srst: 0

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 1

Debug: jtag.c:1095 jtag\_reset\_callback():

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 1

Debug: jtag.c:1095 jtag\_reset\_callback():

Error: jtag.c:1148 jtag\_validate\_chain(): Error validating JTAG scan chain, IR

mismatch, scan returned 7f

However, if I program the Chameleon with “030\_amt\_wiggler” and run OpenOCD, the user LED on the POD blinks a lot and I get:

S:\TEMP\cygwin\_temp\_build\trunk\src\>openocd -d3 -f arm7\_wig.cfg

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-09-07 20:00 CEST)

Debug: jtag.c:1209 jtag\_init():

Debug: parport.c:373 parport\_init(): requesting privileges for parallel port 0

x378…

Debug: parport.c:383 parport\_init(): …privileges granted

Debug: parport.c:210 parport\_reset(): trst: 0, srst: 0

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 1

Debug: jtag.c:1095 jtag\_reset\_callback():

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 1

Debug: jtag.c:1095 jtag\_reset\_callback():

Debug: openocd.c:98 main(): jtag init complete

Debug: arm7\_9\_common.c:655 arm7\_9\_assert\_reset(): target-\>state: unknown

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 0

Debug: jtag.c:1095 jtag\_reset\_callback():

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 1

Debug: jtag.c:1095 jtag\_reset\_callback():

Warning: arm7\_9\_common.c:679 arm7\_9\_assert\_reset(): srst resets test logic, too

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 0

Debug: jtag.c:1095 jtag\_reset\_callback():

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 1

Debug: jtag.c:1095 jtag\_reset\_callback():

Debug: parport.c:210 parport\_reset(): trst: 1, srst: 1

Debug: parport.c:210 parport\_reset(): trst: 1, srst: 1

Debug: arm7\_9\_common.c:718 arm7\_9\_deassert\_reset(): target-\>state: reset

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 2

Debug: jtag.c:1095 jtag\_reset\_callback():

Debug: parport.c:210 parport\_reset(): trst: 0, srst: 0

Debug: openocd.c:102 main(): target init complete

Debug: openocd.c:106 main(): flash init complete

Debug: gdb\_server.c:1115 gdb\_init(): gdb service for target arm7tdmi at port 3

333

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: jtag.c:247 jtag\_call\_event\_callbacks(): jtag event: 3

Debug: jtag.c:1095 jtag\_reset\_callback():

Debug: arm7\_9\_common.c:781 arm7\_9\_halt(): target-\>state: running

Debug: embeddedice.c:252 embeddedice\_write\_reg(): 9: 0xffffffff

Debug: embeddedice.c:252 embeddedice\_write\_reg(): 11: 0xffffffff

Debug: embeddedice.c:252 embeddedice\_write\_reg(): 12: 0x00000100

Debug: embeddedice.c:252 embeddedice\_write\_reg(): 13: 0x000000f7

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Debug: embeddedice.c:156 embeddedice\_read\_reg\_w\_check(): 1

Any ideas why OpenOCD is having issues with the Amontec JTAG Accelerator?

Once again, thanks to all (Dominic and Laurent) for your hardwork and support.

---

<div class="post-metadata">

**Author:** ![iguffick](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@iguffick](https://community.sparkfun.com/u/iguffick)\
**Post date:** [September 21, 2006, 8:44am UTC](https://community.sparkfun.com/t/error-validating-jtag-scan-chain-amontec-chameleon-ocdr98/2744/2 "2006-09-21T08:44:28Z")

</div>

The chameleon.cfg configuration is used for programming the chameleon pod with a new configuration.

You need to use one of the ARM7 configuration files.

I don’t use any of the LPC2xxx devices, so can’t offer you a ready to go config file for that device. Others on the forum will have working configurtion setup, have a look through the forum history!

Regards,

Ian.
