Help Needed: Olimex ARM-USB-JTAG and LPC2129

I’m using Olimex ARM-USB-OCD dongle with LPC2129 chip that is on a Keil MCB2100 Dev Board. I installled the Olimex For Dummies CD that has Eclipse, OpenOCD, etc. I’m using the default ARM-USB-OCD/LPC2129 project so I assume the configuration files would be correct. When I try and connect the dongle I get the following errors, “Error: armv4_5.h:114 armv4_5_mode_to_number(): invalid mode value encountered”.

Can someone please help me figure what is causing this error? Thanks.

Errors:

Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info:    options.c:50 configuration_output_handler(): jtag_speed: 2, 2
Info:    options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Error:   armv4_5.h:114 armv4_5_mode_to_number(): invalid mode value encountered
Error:   arm7_9_common.c:1102 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure
Error:   ft2232.c:174 ft2232_write(): FT_Write returned: 4
Error:   ft2232.c:404 ft2232_send_and_recv(): couldn't write MPSSE commands to FT2232

Here is my .cfg file:

#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
jtag_speed 2

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst separate

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 10

#target_script 0 reset oocd_flash2138.script
working_area 0 0x40000000 0x2000 nobackup

#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14745 calc_checksum
# pre-OpenOCD189
#flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v2 0 14745 calc_checksum

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger

I changed the crystal speed in the .cfg file from 14745 to 12000 (my board is running with a 12mHz crystal). It looks like when I run OpenOCD I can connect with the dongle and lpc2129.

Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info:    options.c:50 configuration_output_handler(): jtag_speed: 2, 2
Info:    options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)

When I run the debugger I get the following error. Anyone have any ideas what to do now? I’m so close to getting this working!!! Help!

Error creating session
Cannot run program "gdb": Launching failed
  Cannot run program "gdb": Launching failed
  Cannot run program "gdb": Launching failed

The debugger’s name is never “just” gdb - arm-none-eabi-gdb for Codesourcery, arm-elf-gdb for WinARM, Yagarto and some other.

4/3!!