Newbie: Trying to get Olimex LPC-P2103 to do flash example.

Hi, I am a bit bewildered. I have only ever worked with PICs with a CCS compiler. I am trying to comprehend everything.

I have an Olimex LPC-P2103 board and an the Olimex USB Tiny JTAG device.

I have been reading the James Lynch tutorial but it was written a while ago and I don’t know quite what is relevant to me.

The CD I got from Olimex did a pretty good job of installing everything but the help on the Eclipse mainly puts up “HTTP Status 500”

I downloaded a new version but it’s not configured the same way as the installation from the CD.

So, going back to the installation from the CD I see some projects.

None refer to the LPC2103.

Question 1: Can I expect the LPC2106 program to work on the LPC2103, since they seem to have pretty much the same internals?

Questions 2: The Olimex board had a flashing LED when I got it but now the LED doesn’t flash. Was it programmed with the LED flash example? and have I wiped it? Is there some extra step apart from the instructions in the readme file which told me to install the software and drivers for the USBTiny and then in Eclipse Run External Tools\OpenOCDTiny and then press the BUG icon and enjoy the blinking LED?

Question 3: The James Lynch tutorial mentions the Philips LPC2000 flash utility, should I be installing that? I thought the USB Tiny should be able to do my programming.

Question 4: Having bungled my way through things when I do the steps in the Readme on the CD I get the following:

  • Info: openocd.c:82 main(): Open On-Chip Debugger (2006-10-12 18:00 CEST)

    Error: armv4_5.c:186 armv4_5_mode_to_number(): invalid mode value encountered

    Error: arm7_9_common.c:972 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure

    Error: armv4_5.c:186 armv4_5_mode_to_number(): invalid mode value encountered

    Error: arm7_9_common.c:972 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure

    Error: armv4_5.c:186 armv4_5_mode_to_number(): invalid mode value encountered

    Error: arm7_9_common.c:972 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure

    Warning: arm7_9_common.c:623 arm7_9_poll(): DBGACK set while target was in unknown state. Reset or initialize target before resuming


  • Any clues to help me get started?

    Thanks[/list]

    The LPC2103 is similar to the LPC2106, so the examples should work.

    You don’t need the flash utility if you have the Olimex JTAG interface. The former gives you flash programming via RS-232.

    It sounds as if you have managed to lose the LED program that was in it, although I can’t see how if you haven’t got the JTAG interface to work properly.

    I use CrossWorks so I can’t help with the debugger.

    Leon