# OpenOCD with LPC2103 and Olimex ARM-JTAG fails.

**URL:** <https://community.sparkfun.com/t/openocd-with-lpc2103-and-olimex-arm-jtag-fails/13963>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [January 10, 2010, 4:18pm UTC](https://community.sparkfun.com/t/openocd-with-lpc2103-and-olimex-arm-jtag-fails/13963 "2010-01-10T16:18:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![torleifj](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@torleifj](https://community.sparkfun.com/u/torleifj)\
**Post date:** [January 10, 2010, 4:18pm UTC](https://community.sparkfun.com/t/openocd-with-lpc2103-and-olimex-arm-jtag-fails/13963/1 "2010-01-10T16:18:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![vortagg](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@vortagg](https://community.sparkfun.com/u/vortagg)\
**Post date:** [January 10, 2010, 8:43pm UTC](https://community.sparkfun.com/t/openocd-with-lpc2103-and-olimex-arm-jtag-fails/13963/2 "2010-01-10T20:43:35Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![torleifj](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@torleifj](https://community.sparkfun.com/u/torleifj)\
**Post date:** [January 10, 2010, 8:56pm UTC](https://community.sparkfun.com/t/openocd-with-lpc2103-and-olimex-arm-jtag-fails/13963/3 "2010-01-10T20:56:15Z")

</div>

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

[http://www.ixbat.de/index.php?page\_id=95](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
