// 初始化nvs flashesp_err_terr=nvs_flash_init();// 如果nvs flash 满了就清空if(err==ESP_ERR_NVS_NO_FREE_PAGES||err==ESP_ERR_NVS_NEW_VERSION_FOUND){// NVS partition was truncated and needs to be erased// Retry nvs_flash_initESP_ERROR_CHECK(nvs_flash_erase());err=nvs_flash_init...
esp_err_t nvs_flash_erase_partition(const char *part_name) 参数 part_name :分区表名称 返回值 与nvs_flash_erase(void)相同 (3) 删除自定义分区 esp_err_t nvs_flash_erase_partition_ptr(const esp_partition_t *partition) 参数 partition 指向由 ESP 分区 API 获取的分区指针 返回值 ESP_OK on s...
@@ -116,7 +116,7 @@ extern "C" esp_err_t nvs_flash_init_partition_ptr(const esp_partition_t *partiti return init_res; } #ifndef LINUX_TARGET #ifndef LINUX_HOST_LEGACY_TEST extern "C" esp_err_t nvs_flash_init_partition(const char *part_name) { esp_err_t lock_result = Lock:...
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - esp-idf/components/nvs_flash/include/nvs_flash.h at v4.3.5 · espressif/esp-idf
of the error codes from the underlying flash storage driver */ esp_err_t nvs_flash_init_partition_ptr(const esp_partition_t *partition); /** * @brief Deinitialize NVS storage for the default NVS partition * * Default NVS partition is the partition with "nvs" label in the partition table...
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - esp-idf/components/nvs_flash/include/nvs_flash.h at 7a305c0284b7af7cd8b8f12b48f72e2685d9a363 · espressif/esp-idf