DEV Community

Discussion on: How to encrypt the NVS volume on the ESP32

Collapse
 
pollock94 profile image
Palok Biswas

I have a separate NVS partition for device credentials. Everything worked as usual after following your instructions, however, nvs_open_from_partition() failed to open the partition. I initialized the partition using nvs_flash_secure_init_partition() and it gives me an error of namespace not existing. Any idea why that is happening?

Collapse
 
pollock94 profile image
Palok Biswas

nvs_flash_secure_init_partition is working now but nvs_get_str() is unable to find the key value that was in my nvs partition. Works fine without the encryption

Collapse
 
kkentzo profile image
Kyriakos Kentzoglanakis

Are you still facing a problem? I am using nvs_open before calling nvs_get_str which returns the stored string successfully (if that helps).