simple test EEPROM emulation (STM algorithm described in the application notes: AN4061, AN3969, AN2594, AN3390, AN4056) for STM32F091
Description in AN4061 from STM.
Changed (compared with the original code AN4061):
- possibility of a larger size of emulated EEPROM (using multiple Flash pages)
- dummy variables prevent overwrite code in Flash by algorithm of EEPROM emulation
Macro PAGE_NB_PVP (in eeprom.h) defines the size of the virtual page.
Eg. For F091 where Flash page are 2kB value 4 gives 8kB.
Size 8kB virtual page gives you the ability to use max. approx. 2k of 16-bit variables.
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
6:669ff12928f9 | 2016-09-23 | mega64 | Added possibility to increase size of virtual pages of emulation |
5:aa44afa6ca35 | 2016-09-23 | mega64 | fix STM error in EE_VerifyPageFullyErased |
4:0545cac4e5f9 | 2016-09-23 | mega64 | Bug fix for not consecutive areas of pages PAGE 0, PAGE 1. |
3:a51a1737b55d | 2016-09-22 | mega64 | not tested! |
2:3d16b28380a9 | 2016-07-29 | mega64 | Protect flash area of EEPROM simulation in case a larger code |
1:e91328f723ab | 2016-05-29 | mega64 | ok |
0:bbe849f641a8 | 2016-05-29 | mega64 | simple test |