-->
Page 1 of 1

Flash Memory Cycles

PostPosted: Mon May 16, 2016 6:46 pm
by Awacks
I'm planning on using the NodeMCU as a counter/displayer for some operational machines that I have.

Since it will be powered by the 220v line, when the power grid fails it would lose the counter number.

To keep the solution at a software level I'm planning on saving the counter number to the flash memory (file.write()) and reading from it when the Node boots up.

That rewrite cycle would occur 5.000 times a day, how many cycles should I expect before the Flash memory starts to wear out/fail ?

Daniel.

Re: Flash Memory Cycles

PostPosted: Mon May 16, 2016 10:06 pm
by lethe
Winbond flash is specified for up to 100000 erase cycles (see http://elinux.org/images/f/f5/Winbond-w25q32.pdf), so a naive aproach will wear your flash out in about 3 weeks.
To make matters worse, you can't rely on that number, since most modules don't use Winbond flash, but cheap chinese chips for which you'll have a hard time finding any datasheets.

See this post for a possible workaround: viewtopic.php?p=36367#p36367

Re: Flash Memory Cycles

PostPosted: Mon May 16, 2016 10:17 pm
by chaeplin
one suggestion : use 56 bytes of NV SRAM in ds1307.

https://en.wikipedia.org/wiki/NvSRAM

Re: Flash Memory Cycles

PostPosted: Tue May 17, 2016 8:13 am
by martinayotte
You could also use FRAM such FM25V10 with high write endurance :

High-endurance 100 trillion (10^14) read/writes
151-year data retention (See the Data Retention and Endurance table)

http://www.cypress.com/documentation/da ... -datasheet