Flash memory durability (SPIFFS)
Posted: Mon Jan 10, 2022 7:13 pm
Hello all,
i have a question to the durability of the flash memory:
Is it true that the flash memory of the ESP32 can slowly break after about 100000 write cycles?
And if yes: What exactly means "write cycles"?
Following example:
I want to save 300 measurings a day (e.g. temperature measurings) in a file.
For each day a new file is created named with the current date.
So e.g. for today i would have a file called "2021-01-10.bin"
If i then
open the file
append the new measuring by file.write
close the file
and do this 300 times.
Would that be 300 write cycles?
This would mean that i would have 109500 write cycles a year (300 * 365).
And that would mean, that the flash memory would be defective after about a year.
Is this correct?
Best wishes
Daniel
Thank you for your help and a good healthy new year to everybody!
Daniel
i have a question to the durability of the flash memory:
Is it true that the flash memory of the ESP32 can slowly break after about 100000 write cycles?
And if yes: What exactly means "write cycles"?
Following example:
I want to save 300 measurings a day (e.g. temperature measurings) in a file.
For each day a new file is created named with the current date.
So e.g. for today i would have a file called "2021-01-10.bin"
If i then
open the file
append the new measuring by file.write
close the file
and do this 300 times.
Would that be 300 write cycles?
This would mean that i would have 109500 write cycles a year (300 * 365).
And that would mean, that the flash memory would be defective after about a year.
Is this correct?
Best wishes
Daniel
Thank you for your help and a good healthy new year to everybody!
Daniel