Issues writing to NVS on ESP32 WROOM when WiFi enabled

I’ve run into an unusual issue with my ESP32 WROOM board. I can read and write to the NVS (Non Volatile Storage) when WiFi isn’t enabled, but as soon as WiFi get enabled, I can no longer write to the NVS. It seems there is either a timing issue or conflict of some kind that is getting in the way. Has anyone else run into this, and if so.. how did you resolve it?

This is a bit out of my wheelhouse, but it sounds like a timing/race condition issue…try going through the steps outlined here - I’d try using nvs_commit() and delays as suggested and see how far that gets ya

In ChatGpt type : On my ESP32 WROOM board. I can read and write to the NVS (Non Volatile Storage) when WiFi isn’t enabled, but as soon as WiFi get enabled, I can no longer write to the NVS. It seems there is either a timing issue or conflict of some kind that is getting in the way. Has anyone else run into this, and if so.. how did you resolve it?

It brings forward a number of ideas, reasons and potential solutions. Maybe good starting point.

Sadly, I exhausted the ChatGPT ideas a little while ago, but I appreciate the suggestion.

Some of those ideas sound similar to what ChatGPT suggested, but there are some different things to try in there as well. I’ll give those a try. Thanks!

1 Like