nvs_storage.cpp: assertion "dataSize == readSize" failed
Posted: Mon Aug 31, 2020 12:26 pm
Hi All,
I have a device using the esp32 wroom-32d and running esp-idf sdk v3.3.1.
When the device reboots occasionally I see the following failed assert:
assertion "dataSize == readSize" failed: file "C:/device/user/repository/esp
-idf/components/nvs_flash/src/nvs_storage.cpp", line 419, function: esp_err_t nvs::Storage::readMultiPageBlob(uint8_t, const char*, void*, size_t) abort() was called at PC 0x400d5ba3 on core 0
When this assert error occurs, the device will reset and print this error again and will continue to repeat this cycle. The only way to recover the device is to reflash it.
Just a note, this device has run an earlier version of the esp-idf sdk where this error was not seen. In the earlier version, nvs_storage.cpp line 419 where the assertion occurs did not exist. Since updating to esp-idf sdk v3.3.1 this error is seen on the device occasionally.
I would appreciate any insights into the cause of this error.Thanks.
I have a device using the esp32 wroom-32d and running esp-idf sdk v3.3.1.
When the device reboots occasionally I see the following failed assert:
assertion "dataSize == readSize" failed: file "C:/device/user/repository/esp
-idf/components/nvs_flash/src/nvs_storage.cpp", line 419, function: esp_err_t nvs::Storage::readMultiPageBlob(uint8_t, const char*, void*, size_t) abort() was called at PC 0x400d5ba3 on core 0
When this assert error occurs, the device will reset and print this error again and will continue to repeat this cycle. The only way to recover the device is to reflash it.
Just a note, this device has run an earlier version of the esp-idf sdk where this error was not seen. In the earlier version, nvs_storage.cpp line 419 where the assertion occurs did not exist. Since updating to esp-idf sdk v3.3.1 this error is seen on the device occasionally.
I would appreciate any insights into the cause of this error.Thanks.