Yahoo Groups archive

Lpc2000

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

Message

Reading from flash

2005-06-28 by albin_martinsson

Hi

Anyone knows why I get some bit-errors when I am reading from the 
flashmemory. In my program I store some data (texts and other 
configurations) with the IAP routines. But if I compare the recently 
written data from RAM with the programmed data from Flash there are 
some bits that has changed, resulting in a checksum error for the 
data I have written to Flash. But!  when i do a memory dump from the 
flash memory with the LPC2100-program I always read the correct data.

I read from Flash by pointing a byte pointer like this:

tU8 *ptr;
flashaddress = 0x00020000;
...
ptr = (tU8 *)flashaddress;

When i turned off the MAM funktion the error reduced but there are 
still some errors. 

Can someone explain why this is so?

B.R  /Fredrik Martinsson

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.