Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Problem with lpc21isp

2005-05-26 by Thiadmer Riemersma (ITB CompuPhase)

> I've been trying your latest lpc21isp.c file (on windows) with an 
> LPC2124 chip.
> [...] In both cases it appears to program successfully, 8 sectors,
> but the resultant program in flash seems to be rubbish above
> 0x12000. [...]

The first thing to check would be whether the lpc21isp utility
correctly detects your chip (the LPC2124). When you run it, the
utility prints this chip number somewhere.

The boundary of 0x12000 is precisely where the sector size switches
from 8192 to 65536 bytes. One possibility is that the new sector size
is not picked up correctly. With large sectors, a sector cannot be
written in a single blow: the maximum number of bytes that can be
copied from RAM to Flash ROM is 8192 bytes (on a LPC2124), but the 9th
flash sector is 65536 bytes long. So there is another loop that fills
the sector in multiple runs. There may be a bug here too.

I will try to verify what is going on.

Kind regards,
Thiadmer

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.