I actually have OpenOCD working on my custom board with an LPC2138 using an Olimex Wiggler. The strange part is what happens after I run the scripts.
I narrowed the problem down to the shutdown command. When the script ends with the shutdown command, the next time I run the scripts I get errors saying “jtag_examine_chain(): number of discovered devices in JTAG chain (578) doesn’t match configuration (1)” and a couple other related error messages that just tell me to check my files and that it will try to run anyway.
When I comment out the shutdown command and use a CTRL-C to end OpenOCD, the script files run with no errors.
Both cases run to completion and the program in the flash executes properly, but the error messages bother me. Any suggestions?