Closed taherrera closed 2 years ago
@taherrera : The nvs library is part of the esp-idf distribution from Espressif.
Perhaps your question could be better handled by Espressif's support channels.
As general advice on this type of situation, you might try the following:
Feel free to reopen this issue if you believe this problem to be specific to amazon-freertos. Otherwise, you might find help in the FreeRTOS Community Forums.
I have a serious problem with NVS storage. I have tried this with an ESP32-WROOM (dev module) and ESP32-WROVER (custom PCB).
NVS sometimes works, and some times it does not. In this example here, I cant even call nvs_flash_init(). I have erased_flash multiple times.
This is part of my main:
This is the part of the function platform_init():
This is part of my function storage_init():
Some times this function works ok, and I can save a blob to the NVS, other times, I cannot save to the NVS and it panics.
The NVS also trows error when communicating via bluetooth with the ESP32, for example, this happens (most of the times) when I try to pair to the ESP32:
The Bluetooth works perfectly If I do NOT call nvs_flash_init .
¿What could be wrong?