10 years ago.

How to make the flash memory permanent?

Hi,

I manage to run your program on my C027 kit but it seems that all the flashed data is erased on reset.

Is there a way to make it parmanent?

Thanks for your code.

Anaël.

Question relating to:

Sample code for how to erase/write LPC1768, LPC11U24, LPC1114, LPC812 and LPC824 internal flash memory. This program uses IAP call of MCU's ROM routines. The IAP library also supports read/write … EEPROM, IAP, In-Application Programming, internal EEPROM, internal flash memory

1 Answer

10 years ago.

As I mentiond in my note page the mbed-interface chip erases entire flash memory at reset after new executable code saved.
There is no way to avoid this.

So this IAP program is useless unless you use the microcontroller (LPC1768, LPC11U24) standalone.

For the permanent data saving, I recommend to use the "local storage", SD-card or USB-storage on mbed board.