LPC11C24 - Serial number in flash memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC11C24 - Serial number in flash memory

960 Views
gfa
Contributor I

In my product, using LPC11C24, I need to memorize a serial number.

Usually, I did it in an EEPROM memory. But the LPC11C24 didntt have one.

Is it possible to store a number on 6 bytes (6 digit in ASCII format), in the flash memory for example, without recompiling the project  (so by user code)?

The other way is to use the serial number of the LPC11C24. But is it possible, from the NXP LPC11C24 serial number to generate a unique 6 digit serial number ?

thanks

best regards

Labels (1)
0 Kudos
Reply
1 Reply

618 Views
converse
Senior Contributor V

Yes, you can store whatever you like in Flash, by using IAP (read the User Manual to find how to program the flash in your code, using IAP).

The problem is that flash has a minimum program size (page) which is typically 256 bytes or more, so to change just 6 bytes, you would need to read an entire page into RAM, erase the page, change the bytes in the RAM copy, and then write RAM copy back into flash. Alternatively, you could just reserve a whole page (preferably at or near the top of flash) and overwrite the whole page.

There are many questions (and answers) on this forum about the subject of emulating eprom in flash

0 Kudos
Reply