NVS gets corrupted
Posted: Tue Dec 11, 2018 5:11 pm
Hi,
I have two NVS namespaces.
I keep one NVS namespace handle open after reading values. Is this good idea or ok to keep handle open.
During OTA this nvs handle is still opened. I added few more keys in new firmware with opened NVS namespace. I mess up my other nvs namespaces values.
Is this expected?
Can we add and remove keys/values via OTA updates.
Also, can we re-power device by plug-out power cable while firmware is running and nvs is opened. Does It can cause NVS corruption.
Thanks,
Naeem
I have two NVS namespaces.
I keep one NVS namespace handle open after reading values. Is this good idea or ok to keep handle open.
During OTA this nvs handle is still opened. I added few more keys in new firmware with opened NVS namespace. I mess up my other nvs namespaces values.
Is this expected?
Can we add and remove keys/values via OTA updates.
Also, can we re-power device by plug-out power cable while firmware is running and nvs is opened. Does It can cause NVS corruption.
Thanks,
Naeem