Page 1 of 1

ESP32 FLASH DATA

Posted: Mon May 30, 2022 3:57 pm
by lx393ale
Hello everybody,
I need some advice on choosing the best way:
I have 4kb (it's a structure) of data that needs to be stored permanently and sometimes updated (not all together but some structure variables as needed). Currently I have created a spiffs partition where I will overwrite a file with all this data whenever there is a variation. However, this leads to keeping the CPU busy making it lose its connection to the router (as happens here https://www.esp32.com/viewtopic.php?t=6800&p=29472). Are there better alternatives, perhaps going to save the single value and not all 4kb?

Re: ESP32 FLASH DATA

Posted: Tue May 31, 2022 1:21 am
by ESP_Sprite
I'd break the structure apart a bit and use nvs to store the components. With 4K, you may want to make sure the nvs partition isn't at its absolute minimum size, though.