Forums

LPC2103 flash programming failure - only parts corrupt.

Started by artsaagluap August 4, 2008
Hi,

I am having programming failures on my Olimex LPC-P2103 board.

I'm using an Olimex USB Tiny with OpenOCD under eclipse.

The first 0x00000FFF are being written correctly then there is a gap
of incorrectly written flash and then from 0x000001100 and upwards the
flash is good again.

Can anyone tell me what's the most likely problem?

An Engineer's Guide to the LPC2100 Series

--- In l..., "artsaagluap" wrote:
>
> Hi,
>
> I am having programming failures on my Olimex LPC-P2103 board.
>
> I'm using an Olimex USB Tiny with OpenOCD under eclipse.
>
> The first 0x00000FFF are being written correctly then there is a gap
> of incorrectly written flash and then from 0x000001100 and upwards
the
> flash is good again.
>
> Can anyone tell me what's the most likely problem?
>
Hi, I solved the problem.

In the commands tab of the Debug config I changed this line:
monitor flash erase 0 0 0
to
monitor flash erase 0 0 1

I found the answer here:

http://forum.sparkfun.com/viewtopic.php?t`46

Along the way I was blaming my ancient Olimex GCCFD setup and tried to
install a new Eclipse/OpenOCD/GDB Hardware Debug setup but I failed to
get that going so I've gone back to my old setup.