2020-10-12 05:09 AM
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:
"
How long will the flash memory last ? How do I calculate it ?
Thank you !
2020-10-15 09:47 AM
I´m really sorry, i can´t answer your question :( I never got LittleFS to work outside that mbed ecosystem and so atm i´m stuck with FATFS, provided by ST, which even doesn´t know about wear leveling :(
But if you got LFS to work within the cube ecosystem: A code example, how to do it, would be highly appreciated :)
Thanks, Charly