Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] LPC2129 Flash IAP "feature"

2004-10-22 by Charles Manning

On Friday 22 October 2004 02:12, embeddednut wrote:
> Does anyone know if it is allowed to program the same 512 byte sector
> multiple times (assuming that with each call bits only get cleared
> not set)?
>
> I currently have my RAM 512 byte buffer filled with 0xFF and write a
> string to the first 16 bytes, and program that into Flash (writing
> all 512 bytes).
>
> Works fine.
>
> Next step I am only modifying bytes 16 to 31 (which were 0xFF before)
> and try to write again to the same destination address. The call to
> write flash produces no error, however, if I read back from Flash I
> see that one of my just added bytes does not have the right value,
> one bit too many got changed from one to zero. I see a 't' (in flash)
> instead of a 'u' (which is in RAM).
>
> I tried different addresses to verify that it is really not the Flash
> memory, and yes, it happens also if I use a different address - same
> bit.
>
> Thanks,
>
> Peter

Partial page programming did not work for me either. I found that it 
sometimes works and sometimes corrupts. However the corruptions were enough 
that I could never get 128k to load successfully.

Eventually I just modified my loader to program in 512byte pages.

-- Charles

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.