-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NVS Partition Generator Utility: ESP_ERR_NVS_NOT_FOUND (IDFGH-1289) #3113
Comments
The limit is mentioned here: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/storage/nvs_flash.html#keys-and-values Partition generator should check the limit, though. |
Thanks @igrr I had a similar issue, but it was because the key was longer than 15 chars. It would be be much better if both of those the an error that indicated the key was too long. |
Environment
Problem Description
There seems to be a key length restriction when calling nvs_get_blob().
This line throws ESP_ERR_NVS_NOT_FOUND:
nvs_get_blob(my_handle, "certificate_pem_crt", NULL, &required_size);
But if I change the name of the key to "cert_pem_crt" and recreate the bin file with the shorter key name then this works:
nvs_get_blob(my_handle, "cert_pem_crt", NULL, &required_size)
Expected Behavior
Test Program should not print "Nothing saved yet!"
Actual Behavior
Program throws ESP_ERR_NVS_NOT_FOUND and aborts.
Steps to repropduce
Code to reproduce this issue
Debug Logs
The text was updated successfully, but these errors were encountered: