nvs failed to open from specified partition
Posted: Mon Oct 10, 2022 11:24 am
hi, I have the following partition table on my board:
## Label Usage Type ST Offset Length
0 nvs WiFi data 01 02 00010000 00004000
1 otadata OTA data 01 00 00014000 00002000
2 phy_init RF data 01 01 00016000 00001000
3 ota_0 OTA app 00 10 00020000 00100000
4 ota_1 OTA app 00 11 00120000 00100000
5 nvs_key NVS keys 01 04 00220000 00001000
6 nvs_cirq WiFi data 01 02 00221000 001db000
when i try to open the `nvs_cirq` in the following code, i get the :
i can work with the default nvs partition without a problem, so what is the problem here, what is it that I am doing wrong?
## Label Usage Type ST Offset Length
0 nvs WiFi data 01 02 00010000 00004000
1 otadata OTA data 01 00 00014000 00002000
2 phy_init RF data 01 01 00016000 00001000
3 ota_0 OTA app 00 10 00020000 00100000
4 ota_1 OTA app 00 11 00120000 00100000
5 nvs_key NVS keys 01 04 00220000 00001000
6 nvs_cirq WiFi data 01 02 00221000 001db000
when i try to open the `nvs_cirq` in the following code, i get the :
the code is as below:ESP_ERR_NVS_PART_NOT_FOUND
- nvs_handle_t handle;
- esp_err_t err = nvs_open_from_partition("nvs_cirq", "cir_qd", NVS_READWRITE, &handle);
- if (err != ESP_OK) {
- ESP_LOGW(TAG, "Error (%s) opening NVS handle !\n", esp_err_to_name(err));
- }