Reply by michael brown November 14, 20072007-11-14
Michael Welter wrote:
> Would anyone be willing to share their openocd.cfg for the LPC2103?
> Thanks

I used this for a 2106, watch for line wrapping:

#daemon configuration
telnet_port 4444
gdb_port 3333

interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0004
jtag_speed 3

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#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 arm7tdmi
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30

working_area 0 0x40000000 0x1000 nobackup

#flash configuration
#flash bank lpc2000 0 0
flash bank lpc2000 0x0 0x20000 0 0 0 lpc2000_v1 14765 calc_checksum

# For more information about the configuration files, take a look at:

An Engineer's Guide to the LPC2100 Series