2023-01-23 05:06 AM
I am using X-CUBE-EEPROM software to emulate EEPROM in flash memory of the MCU.
It is running on STM32G070RB. This MCU has endurance only 1 kcycle.
We would like to store only a few variables (about 10) to the virtual eeprom. I expect that the main application will modify these variables only couple of times.
I found that the zeros (64bits) are written to the emulated eeprom on every restart during EE_Init (due to data recovery mechanism). It doesn't matter if the EE_Init is called with EE_FORCED_ERASE or EE_CONDITIONAL_ERASE. And it doesn't matter if some eeprom variable was modified from the last restart.
Is it possible to remove writing of the zeros on every restart? E.g. If the device didn't modified any eeprom variable from the last restart? It means that there are already zeros from the last restart at the end of the virtual eeprom and they can be used for recovery mechanism if it would needed. Why it is necessary to write additional 64bit zeros?
It can wear the emulated eeprom because too many restarts during lifetime of the device.
Solved! Go to Solution.
2023-01-23 05:25 AM
Welcome, @Roman Malachovský, to the community!
I would like to take this opportunity to draw your attention to the same question that was answered some time ago.
I hope I was able to help a little?
Regards
/Peter
2023-01-23 05:25 AM
Welcome, @Roman Malachovský, to the community!
I would like to take this opportunity to draw your attention to the same question that was answered some time ago.
I hope I was able to help a little?
Regards
/Peter
2023-01-23 05:53 AM
Thank you @Peter BENSCH ,
I didn't find this topic on community before. That's why I created a new topic.
Thank you for the link to the answer.
I will ask on that thread.
Thank you and best regards,
Roman.
2023-01-23 05:57 AM
Great!
If the problem is solved (here), please mark this thread as answered by selecting Select as best, as also explained here. This will help other users find that answer faster.
Good luck!
/Peter