-->
Page 1 of 1

Doubt about EEPROM and OTA

PostPosted: Fri Jul 17, 2020 11:50 am
by FRANCISCOGIMENO1000
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

Re: Doubt about EEPROM and OTA

PostPosted: Fri Jul 17, 2020 3:07 pm
by btidey
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.

Re: Doubt about EEPROM and OTA

PostPosted: Mon Jul 20, 2020 1:18 am
by FRANCISCOGIMENO1000
Ok thank you very much for your clarification.