Replies: 2 comments
-
Just adding another problem we have just ran into. When using the hardware timer library with a periodic interrupt, you must insure that the interrupt is disabled while editing the EEPROM. We were having issues with the emulated EEPORM resetting itself due to this. Could this be added into the libraries functionality? |
Beta Was this translation helpful? Give feedback.
-
Hi @Btfriar6 |
Beta Was this translation helpful? Give feedback.
-
Dealing with an issue with if the MCU were to lose power while we are trying to update a field within the emulated EEPROM. We end up losing all the values in the emulated EEPROM. I understand that a prior to a write, you must erase the whole page. I'm wondering how much work it would be to use two flash pages for EEPROM emulation. One page would be used to hold the EEPROM, one would be used as a buffer. This would ensure that you would have a copy of your EEPROM even if you do lose power while updating a value. Is there a better way to ensure that your data is protected in this scenario. I see that in ST AN4894 they say that they use two flash memory pages.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions