NVS customized partition - ESP_ERR_NVS_NO_FREE_PAGES
Posted: Wed Feb 10, 2021 3:15 pm
Dear ESP experts,
I have found that if creating a separate NVS partition (See table below) I get an ESP_ERR_NVS_NO_FREE_PAGES error when calling nvs_flash_init_partition(..) in case the size is 0x1000. When changing the size to 0x2000 it works without an error.
I (64) boot: ## Label Usage Type ST Offset Length
I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (79) boot: 1 nvdb WiFi data 01 02 0000f000 00001000 --> when changed to 0x2000 it works
I (86) boot: 2 otadata OTA data 01 00 00010000 00002000
I (93) boot: 3 phy_ini RF data 01 01 00012000 00001000
I (101) boot: 4 factory factory app 00 00 00020000 00100000
I (108) boot: 5 ota_0 OTA app 00 10 00120000 00100000
I (116) boot: 6 ota_1 OTA app 00 11 00220000 00100000
I couldn't find documentation that there is a minimum size for a NVS partition (I probably overlooked it).
Could someone give a quick explanation why this is happening or where I can find the documentation?
Thanks in advance
I have found that if creating a separate NVS partition (See table below) I get an ESP_ERR_NVS_NO_FREE_PAGES error when calling nvs_flash_init_partition(..) in case the size is 0x1000. When changing the size to 0x2000 it works without an error.
I (64) boot: ## Label Usage Type ST Offset Length
I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (79) boot: 1 nvdb WiFi data 01 02 0000f000 00001000 --> when changed to 0x2000 it works
I (86) boot: 2 otadata OTA data 01 00 00010000 00002000
I (93) boot: 3 phy_ini RF data 01 01 00012000 00001000
I (101) boot: 4 factory factory app 00 00 00020000 00100000
I (108) boot: 5 ota_0 OTA app 00 10 00120000 00100000
I (116) boot: 6 ota_1 OTA app 00 11 00220000 00100000
I couldn't find documentation that there is a minimum size for a NVS partition (I probably overlooked it).
Could someone give a quick explanation why this is happening or where I can find the documentation?
Thanks in advance