0

Maybe my question is trivial but I'm wondering why spifss should have a bigger space than bare minimum. Is min_spiffs configuration a good choice for all kind of applications?

thoraz
  • 209
  • 1
  • 3
  • 14

1 Answers1

0

Assuming your data fits into the file system (note that it's only around 75% effective), you can allocate as little space for it as you want. The problem is load balancing the writes. The Flash in an Espressif module has a limit of 100000 writes per page. If your application writes a lot of data, this load can be spread over a larger amount of pages by creating a bigger SPIFFS partition. So it really depends on how often and how much data your application is writing over the lifetime of your device. If you create a small partition and write lots of data, the Flash pages allocated for SPIFFS can exceed 100000 writes and are no longer guaranteed to work.

Tarmo
  • 3,728
  • 1
  • 8
  • 25