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.
History
Added possibility to increase size of virtual pages of emulation
2016-09-23, by mega64 [Fri, 23 Sep 2016 23:58:25 +0000] rev 6
Added possibility to increase size of virtual pages of emulation
fix STM error in EE_VerifyPageFullyErased
2016-09-23, by mega64 [Fri, 23 Sep 2016 17:44:45 +0000] rev 5
fix STM error in EE_VerifyPageFullyErased
Bug fix for not consecutive areas of pages PAGE 0, PAGE 1.
2016-09-23, by mega64 [Fri, 23 Sep 2016 16:53:39 +0000] rev 4
Bug fix for not consecutive areas of pages PAGE 0, PAGE 1.
not tested!
2016-09-22, by mega64 [Thu, 22 Sep 2016 03:13:23 +0000] rev 3
not tested!
Protect flash area of EEPROM simulation in case a larger code
2016-07-29, by mega64 [Fri, 29 Jul 2016 21:18:28 +0000] rev 2
Protect flash area of EEPROM simulation in case a larger code
ok
2016-05-29, by mega64 [Sun, 29 May 2016 02:04:21 +0000] rev 1
ok
simple test
2016-05-29, by mega64 [Sun, 29 May 2016 01:22:48 +0000] rev 0
simple test