Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By FRANCISCOGIMENO1000
#87939 Hello my question is:
When OTA is done on a device, the EEPROM values (which are not really in the eeprom but in the program area) are overwritten?

I mean the data that we keep with the eeprom instruction.

If so, how do we avoid removing them when doing OTA?
Where is the EEPROM data exactly?

Greetings and thank you
Francisco
User avatar
By btidey
#87941 Although the EEPROM storage area is emulated in the flash memory, it is not part of the program areas used by the running program or the OTA duplicate program area.

The Flash is logically divided up e.g. Program1, Program2, SPIFFS, EEPROM.

Uploading a new program either by serial or OTA will not touch the SPIFFS area or the EEPROM area.

However, if you change the flash division by changing say the SPIFFS size then although the SPIFFS has not been written the data can be lost because the start of that division has changed.