2023-10-19
03:08 AM
- last edited on
2023-10-19
04:15 AM
by
Lina_DABASINSKA
Hello ST community,
I am working with STM32L4R5ZI-P, I am to write data to EEPROM, starting address fro EEPROM _emulation mentioned as 0x080FF000 ,so I took 0x080FF010,here data writing to next location I will provide the snap of that for your reference,
In the above data is updating in 0x080FF020 location may i know why it is happening.
In the next in the 0th position it writing with some values ,may i know what are those values?
I am writing different data like 0x00007897 like this, after that it has some values like 20B4F010 what is this?
Thank you
2023-10-19 05:55 AM
Looks like a shifted / encoded value.
You have all the source code, perhaps you could walk that to understand the mechanics if that's important to you?
2023-10-19 06:02 AM
Thanks for the response,
I was curious to know why it is happening so I posted here.
2023-10-19 06:09 AM
I'll make sure to review the source code thoroughly to gain a deeper understanding of the software.
Thank you
2023-10-19 07:07 AM
The EEPROM Emulation is designed to journal content over multiple sectors/pages, so it can recover the last written values, and manage erase. It has to cover a lot of potential use cases.
If you can better understand what it is you need to store you can likely tailor a much narrower solution that is more efficient and robust.
EEPROM Emulation is a bit of a hack, in most cases the design needs refactoring properly to use OTP, FLASH, NVRAM, and RAM appropriately, depending on the data, and how/if it changes over time.
2023-10-20 03:50 AM
Absolutely, I agree that EEPROM emulation, while functional, may not always be the best approach for data storage in embedded systems. It's crucial to have a clear understanding of the data you need to store and how it behaves over time. By doing so, you can design a more optimized solution that utilizes various types of memory, like OTP, FLASH, NVRAM, and RAM, based on the specific characteristics of your data. This approach not only improves efficiency but also enhances the system's robustness and reliability by choosing the right storage medium for the job.
Thank you