#define ESP_ERR_NVS_KEYS_NOT_INITIALIZED (ESP_ERR_NVS_BASE + 0x16) /*!< NVS key partition is uninitialized */ #define ESP_ERR_NVS_CORRUPT_KEY_PART (ESP_ERR_NVS_BASE + 0x17) /*!< NVS key partition is corrupt */ #define ESP_ERR_NVS_CONTENT_DIFFERS (ESP_ERR_NVS_BASE + 0x18)...
#define ESP_ERR_NVS_CORRUPT_KEY_PART (ESP_ERR_NVS_BASE + 0x17) /*!< NVS key partition is corrupt */ #define ESP_ERR_NVS_CONTENT_DIFFERS (ESP_ERR_NVS_BASE + 0x18) /*!< Internal error; never returned by nvs API functions. NVS key is different in comparison */ #define NVS_DEFAUL...
I've tried uploading and analysing the content of the NVS partition from a device with the bug, in case it was corrupt. The content looks OK (based on the documentation for the NVS library) and I can see the stored namespaces, keys and data. Note that a "factory reset" as above had...
ESP_PARTITION_SUBTYPE_DATA_NVS, NULL); nvs_sec_cfg_t nvs_cfg; err = nvs_flash_read_security_cfg(user_keys_partition, &nvs_cfg); if (err == ESP_ERR_NVS_KEYS_NOT_INITIALIZED || ESP_ERR_NVS_CORRUPT_KEY_PART == err) { err = nvs_flash_generate_keys(user_keys_partition, &nvs_cfg...
* their key-value pairs in the NVS module. In order to reduce possible * conflicts on key names, each module can use its own namespace. * The default NVS partition is the one that is labelled "nvs" in the partition * table.
#define ESP_ERR_NVS_KEYS_NOT_INITIALIZED (ESP_ERR_NVS_BASE + 0x16) /*!< NVS key partition is uninitialized */ #define ESP_ERR_NVS_CORRUPT_KEY_PART (ESP_ERR_NVS_BASE + 0x17) /*!< NVS key partition is corrupt */ #define ESP_ERR_NVS_CONTENT_DIFFERS (ESP_ERR_NVS_BASE + 0x18)...
#ifndef nvs_flash_h #define nvs_flash_h #ifdef __cplusplus extern "C" { #endif #include "nvs.h" #include "esp_partition.h" #define NVS_KEY_SIZE 32 // AES-256 /** * @brief Key for encryption and decryption */ typedef struct { uint8_t eky[NVS_KEY_SIZE]; /*!< XTS ...
* -ESP_ERR_NVS_CORRUPT_KEY_PART, if the partition containing keys is found to be corrupt * -or error codes from esp_partition_read API. */ esp_err_t nvs_flash_read_security_cfg(const esp_partition_t* partition, nvs_sec_cfg_t* cfg); #ifdef __cplusplus } #endif #endif /* nvs_...
nvs_partition_generator src test test_nvs_host .gitignore CMakeLists.txt Kconfig README.rst README_CN.rst component.mk openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter
new value is also stored into NVS, although not accessible using respective nvs_get function. Use only if your application relies on this NVS API behaviour. Enabling this option will switch the nvs_set() family of functions to the legacy mode: when called repeatedly with the same key but di...