SPIFFS Memmory Management

I've been using an SD card for logging and had a lot of problems. I've just descovered SPIFFS and I think that this may be the answer to all my prayers.

There are of course some memory size issues. I don’t have the 2GB of the SD. Although, I have never used much memory capacity of the SD because it gets corrupted if I look at it wrong.

There are a couple of queries that I have about SPIFFS that i have not found the answer to.

  1. If I try to write to SPIFFS that is full, will it cause serious problems with memory, or just fail to write?

  2. If I set up a loop to delete older files, will it cause problems trying to delete a file which does not exist? All my files include a day reference.

have a read of Espressif SPIFFS filesystem
how often will you log ? remember SPIFFS is using flash memory
consider using an FRAM?

I am going to be storing data once per minute.

Reading the Espressif SPIFFS filesystem, i wonder if i may have fragmentation problems.

Looking at the FRAM, at first glance, it looks more complex. Am I understanding correctly that you need to write information to it a byte at a time and specify a memory location for each byte?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.