ver: 4.3.
I tried enabling flash encryption with the code I already have, but as the app started I got the error, that there is no nvs_key partition. So I changed my partition table to
Code: Select all
nvs, data, nvs, 0xd000, 0x6000,
app0, app, ota_0, , 0x160000,
app1, app, ota_1, , 0x160000,
otadata, data, ota, , 0x2000,
storage, data, fat, , 0x107000,
nvs_key, data, nvs_keys, ,0x1000, encrypted
Code: Select all
(850) nvs: Failed to read NVS security cfg: [0x1117] (ESP_ERR_NVS_CORRUPT_KEY_PART)
Code: Select all
esp_err_t err = nvs_flash_init();
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERROR_CHECK(nvs_flash_erase());
err = nvs_flash_init();
}