Is it possible to mount a LittleFS partition in RAM only, in order to extend the product's lifespan with respect to flash erase/write limitations?

Hello

I'm currently mounting a LittleFS partition in the internal flash of my Nordic MCU. However, since data is saved regularly to this partition, I’m concerned that the flash’s erase/write cycle limit could be reached in approximately 1.5 years, after which data integrity issues might occur.

To extend the product's lifespan, I’m considering moving this partition to RAM only.

Is this possible?

Environment : 

- nrf52840
- nrf connect SDK : 2.9.0

Best regards,
Aurélien

Related