Littlefs and flash lifespan calculation ?
Hi,
In my office, I use a custom STM32F767GTx card with a QSPI N25Q128A flash memory.
I use littlefs to create, write and read files.
My software works well, I monitor some inputs and store these values in a file.
Every 24 hours, I have a 200 kbytes file, which I can download with a web server.
The QSPI N25Q128A flash memory is limited to 100,000 erasure cycles per sector.
Littlefs offers wear levelling:
"The block allocator has a secondary role: wear leveling.
Wear leveling is the process of distributing wear across all blocks in the storage to prevent the filesystem from experiencing an early death due to wear on a single block in the storage.
littlefs has two methods of protecting against wear:
- Detection and recovery from bad blocks
- Evenly distributing wear across dynamic blocks
"
How long will the flash memory last ? How do I calculate it ?
Thank you !
