I am trying to connect to an LPC2138 using OpenOCD 0.1.0. Am I expected to use the LPC2148.CFG file and change the CPUID to lpc2138? What other changes am I expected to make because it is not working. Could someone who is using OpenOCD 0.1.0 with an LPC2138 please post their configuration files?
Here is my debug.cfg file. The sourced files olimex-jtag-tiny-a.cfg and lpc2148.cfg are unchanged from the original 0.1.0 distribution.
# Source the default Olimex USB Tiny programmer
source [find interface/olimex-jtag-tiny-a.cfg]
ft2232_vid_pid 0x15BA 0x0004
jtag_khz 2000
# Use default telnet port
telnet_port 4444
# Use default GDB connection
gdb_port 3333
# Use default TCL port
tcl_port 6666
# Set Chipname
set CHIPNAME lpc2138
# Set CPUID
set CPUTAPID 0x4F1F0F0F
# Source the default lpc2148.cfg file
source [find target/lpc2148.cfg]
init
I can connect and issue commands but the LPC2138 always reports that it is running. If I issue a halt or reset init command the system stops, but the poll command returns a running status. The PC register does not change.
Since the part has code running that was programmed with a previous version of OpenOCD, it is generating serial output. I see that the serial output stops when a halt or reset init is issued. I also see the serial output when a reset run command is issued. It looks like the CPU is being halted, but OpenOCD reports it as running and refuses to erase any sectors.