-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EEPROM cleared Suddenly. #3674
Comments
@arihantdaga How long have you been using the eeprom? How often do you write to it? |
Thank you @devyte . I am using eeprom for storing settings as well as storing switch status(I have 5 switches). And 10,000 can be very less in my case, is there an alternative for persistent storage in esp apart from EEPROM then ? for storing settings. ? |
@arihantdaga after a sector is damages, anything can happen. It can fail to work at all, it can work somtimes, or what's worst of all, it can seem to work, but then the data is lost after some short time. |
I have observed the "eeprom" being randomly deleted a few times. I do always read and write small amounts of data in the same places, but there's no way I've got anywhere remotely near 10000 writes even on the boards that have been used the most. And the last time it has happened to me (today) it was on a brand new one. I'm sure there is an issue with data being randomly deleted/rewritten. I don't know whether it's hardware or software, but if it was hardware it would mean that the flash memory is utter garbage and that seems very unlikely. If that was the case, wouldn't the program also get randomly corrupted? That I've never seen happen. I bet a few years from now you'll find out that there's actually been a bug the whole time. |
Basic Infos
Hardware
Hardware: ESP-12E
Core Version: 1.8.3
Using Arduino Version.
Description
I am working on ESP8266 for quiet some time.Its been good so far. I am using EEPROM for storing some custom settings. For the purpose i am using Embedis Library(https://github.com/thingSoC/embedis). And i begin EEPROM using
EEPROM.begin(4096);
Most of the time its working fine, but one night suddenly EEPROM got flushed and it was left with 0xff for the complete 4096 bytes. It keep happening sometimes out of blue. For most of the time its working fine, but suddenly sometimes it is erased. I could not figure out any solid reason for this.
Settings in IDE
Module: ?NodeMCU 1.0 ?
Flash Size: 4MB/(3MB SPIFSS)
CPU Frequency: 80Mhz
Flash Frequency: 80Mhz
Upload Using: SERIAL
The text was updated successfully, but these errors were encountered: