Doubt about flash memory operation
Posted: Mon Aug 17, 2020 4:46 pm
Hi all!
I've read that only around 10,000 write cycles are guaranteed for flash memory, although it can be a lot more. But this question arises: if I write 10,000 times to a sector, would only that sector, or all memory be corrupted? Because I need to record a variable around 100,000 times without risk, and I have to because where I am going to use my system, the power supply is unpredictable and if there is a power outage I need to be sure what the last value of the variable was once the system restarts. I think I could change the sector every time I get close to the 10,000 writes limit, but I don't know if that would solve this problem.
(I'm not worried about losing some sectors during the life I estimate for the system.) I appreciate your help.
I've read that only around 10,000 write cycles are guaranteed for flash memory, although it can be a lot more. But this question arises: if I write 10,000 times to a sector, would only that sector, or all memory be corrupted? Because I need to record a variable around 100,000 times without risk, and I have to because where I am going to use my system, the power supply is unpredictable and if there is a power outage I need to be sure what the last value of the variable was once the system restarts. I think I could change the sector every time I get close to the 10,000 writes limit, but I don't know if that would solve this problem.
(I'm not worried about losing some sectors during the life I estimate for the system.) I appreciate your help.