Prevent EEPROM erasing when uploading a sketch

Hello,

Is there a way to prevent EEPROM erasing when uploading a sketch ?
I would like to use a sketch to store some data into EEPROM and an other sketch that will use these data.
I’ve try, but it seems that when a new sketch is upload, data from EEPROM are erased.

Thank,

Math

Hi, I tried to use EEPROM_write.ino to write data, and upload EEPROM_read.ino to read, data from EEPROM are not erased.

Hello,

You’re right: I haven’t look carrefully enought the eeprom_write.ino example. I missed the EEPROM.commit() function.
I’ve added this function into my code and now, it’ work.

Math