Skip to main content
Associate II
October 19, 2023
Question

Need clarification on Data storing in EEPROM

  • October 19, 2023
  • 5 replies
  • 1827 views

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,eeprom-0.jpg

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?eeprom-2.jpgeeprom_1.jpg

 

I am writing different data like 0x00007897 like this, after that it has some values like 20B4F010 what is this?

 

Thank you

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru
October 19, 2023

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?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate II
October 19, 2023

Thanks for the response,

I was curious to know why it is happening so I posted here.

 

 

Tesla DeLorean
Guru
October 19, 2023

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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..