2022-11-27 09:27 PM
1. Can we emulate the EEPROM mechanism using the on-chip Flash memory (Flash Emulated EEPROM) in the STM32F302 series?
2. Went through the document "AN4894 Application note: EEPROM emulation techniques and software for STM32 microcontrollers", the STM32F302 is not listed under the Applicable STM32 Series Products Table.
#EEPROM #Flash
2022-11-27 10:24 PM
How long power keeps mcu on after power removal? How many writes over lifecycle? Is there max writw time constrain? How many eeprom bytes are needed?
Based on these questions you will know if you can, need dual bank, and needed sector size.
2022-12-04 07:49 PM
2022-12-04 10:05 PM
In this case you could use an external flash, so you don't need eeprom. Basic principle would be to use 2 flash sectors, one being always erased and ready to write, and rotate every write.
Of course this is basic idea, it can be refined.
I assumed your data size is big enough and should not use temporary ram, so the 2 sectors (old and new).