nvs_flash_init_partition returns ESP_ERR_NVS_NOT_ENOUGH_SPACE
Posted: Fri Mar 22, 2024 1:30 pm
Chip : ESP32
NVS custom partition size : 16 kB
Hi,
When calling nvs_flash_init_partition on a NVS custom partition at startup, the function returns ESP_ERR_NVS_NOT_ENOUGH_SPACE error. This NVS custom partition is meant to hold only blob data, some of which are written only once and some are written regularly on a minute basis.
The item that is written every minute is a blob type of 8 bytes.
A memory dump of the NVS custom partition shows that 3 pages are marked as FULL and one page is marked as FREEING. Looking at entries bitmap of each page shows that there are plenty of erased entries, respectively 87, 123, 94 and 96.
Is there a way to fix this ?
NVS custom partition size : 16 kB
Hi,
When calling nvs_flash_init_partition on a NVS custom partition at startup, the function returns ESP_ERR_NVS_NOT_ENOUGH_SPACE error. This NVS custom partition is meant to hold only blob data, some of which are written only once and some are written regularly on a minute basis.
The item that is written every minute is a blob type of 8 bytes.
A memory dump of the NVS custom partition shows that 3 pages are marked as FULL and one page is marked as FREEING. Looking at entries bitmap of each page shows that there are plenty of erased entries, respectively 87, 123, 94 and 96.
Is there a way to fix this ?