What is an IR Mismatch ?

I am trying to get open-ocd running with the Olimex ARM-USB-OCD pod on Linux Fedora Core 6. I am connecting to an LPC2148. I am using the ftd22xx driver.

I can connect with the device, but no matter what I do with the openocd.cfg file, I get this:

openocd

Info: openocd.c:84 main(): Open On-Chip Debugger (2006-11-22 14:00 CEST)

Error: jtag.c:1156 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f

So what is an IR mismatch ? How do I correct it ?

Thanks

Here is my current version of openocd.cfg


#daemon configuration

telnet_port 4444

gdb_port 3333

#interface

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG A”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15BA 0x0003

#reset_config trst_and_srst

reset_config trst_and_srst trst_pulls_srst

jtag_device 4 0x1 0xf 0xe

jtag_speed 10

jtag_nsrst_delay 500

jtag_ntrst_delay 500

target arm7tdmi little run_and_init 0 arm7tdmi-s_r4

run_and_halt_time 0 30

daemon_startup reset

working_area 0 0x40000000 0x4000 nobackup

flash bank lpc2000 0x0 0x7d000 0 0 lpc2000_v2 0 12000 calc_checksum


I found the problem.

The problem was that my board, an Olimex P2148 has a jumper to enable the JTAG port and it also has a jumper and switches for doing ISP. I changed these and I think it runs properly.

When I run it now, with debugging turned off, I get:

openocd &

[1] 13625

Info: openocd.c:84 main(): Open On-Chip Debugger (2006-11-22 14:00 CEST)