Error validating JTAG scan chain *Amontec Chameleon OCDr98

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.

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.