OpenOCD with LPC2103 and Olimex ARM-JTAG fails.

Hi.

I have installed OpenOCD and copied f parport.cfg and lpc2103.cfg to my project directory. I have modified the parallel port address to match my port address.

When I type

openocd -d -f parport.cfg -f lpc2103.cfg

I get the following:

Info: openocd.c:93 main(): Open On-Chip Debugger (2007-09-05 09:00 CEST)

Info: configuration.c:50 configuration_output_handler(): Command if not found

Info: configuration.c:50 configuration_output_handler(): Command set not found

Info: configuration.c:50 configuration_output_handler(): Command } not found

Info: configuration.c:50 configuration_output_handler(): Command set not found

Info: configuration.c:50 configuration_output_handler(): Command } not found

Info: configuration.c:50 configuration_output_handler(): Command if not found

Info: configuration.c:50 configuration_output_handler(): Command set not found

Info: configuration.c:50 configuration_output_handler(): Command } not found

Info: configuration.c:50 configuration_output_handler(): Command set not found

Info: configuration.c:50 configuration_output_handler(): Command } not found

Info: configuration.c:50 configuration_output_handler(): Command if not found

Info: configuration.c:50 configuration_output_handler(): Command set not found

Info: configuration.c:50 configuration_output_handler(): Command } not found

Info: configuration.c:50 configuration_output_handler(): Command set not found

Info: configuration.c:50 configuration_output_handler(): Command } not found

Info: configuration.c:50 configuration_output_handler(): Command jtag not found

Info: configuration.c:50 configuration_output_handler(): Command set not found

Error: target.c:1062 handle_target_command(): target ‘create’ not found

What am Idoing wrong? It doesn’t understand the syntax of the configuration files.

Any ideas?

I just got an LPC-P2103 too. OpenOCD can seem to work differently on every computer it is installed on and I’ve installed it on three now. To me it sounds like a bad OpenOCD program file…so reinstall the program. What OS are you using?

I have it up and running now, using the files from Benedict Sauter, found here:

http://www.ixbat.de/index.php?page_id=95

It’s working on my opensuse 10.3 machine whereas my older Fedora base machine doesn’t work, so I agree with you, it works differently on different machines. The Fedora machine can’t find the jtag probe, so it might be related to hardware. The opensuse is using a delock pcmcia parallel port.

The Fedora PC is a IBM R50, the Opensuse is a Lenovo T61.

I had to correct the syntax a bit, now I have a openosc.cfg file containing the below:

#daemon configuration

telnet_port 4444

gdb_port 3333

interface parport

parport_port 0x8020

parport_cable wiggler

reset delays

jtag_nsrst_delay 100

jtag_ntrst_delay 100

jtag_speed 0

#use combined on interfaces or targets that can’t set TRST/SRST separately

reset_config trst_and_srst trst_pulls_srst

#jtag scan chain

#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)

jtag_device 4 0x1 0xf 0xe

daemon_startup reset

#target arm7tdmi

target arm7tdmi little run_and_init 0 arm7tdmi-s_r4

run_and_halt_time 0 30

8kB of internal SRAM

working_area 0 0x40000000 0x2000 nobackup

#flash configuration

flash bank lpc2000 0x0 0x8000 0 0 lpc2103.cpu lpc2000_v2 14746 calc_checksum

flash bank cfi 0x80000000 0x400000 2 2 0