emulated eeprom

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User7457
Level 2
Level 2
First like received
Hi,
I need to store into micro some configuration data ( say 500 bytes ).
Is there any app or application note that can help me to use a flash sector as an emulated eeprom ( ie I want to write configuration data from inside my application code )?

Thanks
Frank
0 Likes
3 Replies
Not applicable
hi Frank,

There is no eeprom emulation app in DAVE but there is Flash002 app which provide the function to write and erase the flash.
So, with that app, you can use the API to develop an eeprom emulation algorithm to store your data.



Rou
0 Likes
User7457
Level 2
Level 2
First like received
I'll try it out.
The only drawback I see is that flash sectors are so big that it seems overkill to use one of them just for some hundreds of bytes.

Many thanks
Frank
0 Likes
Not applicable
hi Frank,

Each write to the flash is a page size which is 256byte. Only erase flash will required to erase the whole sector.
Therefore, you can always write back to the same sector as long as the page address is different.
When you filled up the whole sector, only then you erase the sector.


rgds
Rou
0 Likes