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? |
0 replies
|
Hi @Btfriar6 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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!
All reactions