ESP32-S3 NVS "nvs_get_i32" gives error "ESP_ERR_NVS_NOT_FOUND"

Naman Shandilya
Posts: 1
Joined: Mon May 02, 2022 4:57 am

ESP32-S3 NVS "nvs_get_i32" gives error "ESP_ERR_NVS_NOT_FOUND"

Postby Naman Shandilya » Mon May 02, 2022 5:25 am

Hi all,
I have bought an ESP32-S3-DevKitC-1 v1.6 Having esp32-s3-wroom-2 module mounted on it. I want to use NVS to store Key and Value Pairs For Wi-Fi Credentials, I am using espressif IDE ver4.4, So to check the working of NVS I have import "nvs_read_value" example from SDK and set the sdk_config parameters to default.
while checking the logs I found that "err = nvs_set_i32(my_handle, "res", restart_counter);" works fine but " err = nvs_get_i32(my_handle, "res", &restart_counter);" Gives error "ESP_ERR_NVS_NOT_FOUND"

The same example working correctly on ESP32-Wroom-32D and ESP32-S2

Please Suggest me what I'm doing WRONG

Any help would be appreciated
Thank You
Attachments
nvs_value_example_main.c
main file of code
(2.83 KiB) Downloaded 197 times
Screenshot (7).png
Screenshot of logs
Screenshot (7).png (367.28 KiB) Viewed 1625 times

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: ESP32-S3 NVS "nvs_get_i32" gives error "ESP_ERR_NVS_NOT_FOUND"

Postby ESP_igrr » Mon May 02, 2022 9:00 pm

Could you please check if you have octal SPI flash support enabled in menuconfig? Please see this comment: https://github.com/espressif/esp-idf/is ... 1060365732

Who is online

Users browsing this forum: No registered users and 107 guests