Hi all,
I want to use encrypted NVS region in the esp32.
The program works fine in ESP-IDF, but when I translate it to arduino IDE I find these LOCs give error :
err = nvs_flash_read_security_cfg(partition, &cfg);
if (err != ESP_OK) {
ESP_LOGE(nvs_tag, "Failed to read nvs keys (rc=0x%x)", err);
err = ESP_ERR_NVS_CORRUPT_KEY_PART;
return err;
}
// 3. initialize nvs partition
err = nvs_flash_secure_init(&cfg);
if (err != ESP_OK ) {
ESP_LOGE(nvs_tag, "failed to initialize nvs partition (err=0x%x). Aborting.", err);
return err;
};
nvs_flash_secure_init
&& nvs_flash_read_security_cfg
give error.
On further inspection I found that the arduino-esp32 core doesn’t has these functions compiled within the libnvs_flash.a library.
Is there a way out to use these functions there?
Or can we compile and link all the libraries separately and put them under tools/lib folder in ArduinoData folder?
Thanks