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

Am I killing my flash? When will flash wear start happening? #2410

craigfoo opened this Issue Aug 18, 2016 · 4 comments


None yet
4 participants
Copy link

craigfoo commented Aug 18, 2016

Basic Infos


Hardware: ESP-12E
Core Version: 2.1.0-rc2


I'm using the Adafruit Huzzah which has the ESP-12E module on it. I have a power management circuit that powers the ESP8266 at a given interval. On a daily average, EEPROM is being read from 24 times and written to 12 times. I also read 2 files on every wakeup using SPIFFS 12 times a day for each file. Am I killing the flash? I have 10 Huzzahs doing this and one just crapped out on me. I'm hoping it's just this one but I'm a concerned.

Settings in IDE

Module: Adafruit Feather Huzzah
Flash Size: 4MB
CPU Frequency: 80Mhz


This comment has been minimized.

Copy link

liquidfalcon commented Aug 18, 2016

Winbond, the manufacturer of the flash chip for the ESP-12 series quotes a write endurance of "More than 100,000 erase/program cycles", so, I doubt you were anywhere close to the wear limits of the flash. If you're really that concerned, try and push everything onto SPIFFS instead of the pseudo-EEPROM implementation, as SPIFFS is wear leveled.


This comment has been minimized.

Copy link

craigfoo commented Aug 18, 2016

@liquidfalcon, that's the perfect answer. I was heading that way (exclusively using SPIFFS) already.


This comment has been minimized.

Copy link

WereCatf commented Aug 18, 2016

In addition to what was said above, reading Flash doesn't wear it out, only writing to it does.


This comment has been minimized.

Copy link

devyte commented Oct 14, 2017

Chinese modules with cheapo flash chips have lower write cycles, i.e.: 10000, but that still gives you over 2 years or so (assuming my sloppy math is correct).

@devyte devyte closed this Oct 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment