NVS - what am I missing?

ndjurov
Posts: 65
Joined: Wed Mar 25, 2020 11:34 pm

Re: NVS - what am I missing?

Postby ndjurov » Tue Mar 02, 2021 11:29 pm

Thanks again boarchuz,

You were right about the quick reboot.
I just changed the test program to get/set an integer value, rather than a string and I used the value as a restart counter that starts from 1. Just like you suggested, the first log displayed in the VS Code showed the counter value of 2, which indicates that this was the second run, not the first one.
Thanks a lot for your help. I will not check the "Reset after flashing" flag that you mentioned.
I think this is very interesting and important issue which can easily bring some confusion and unexpected results.

Cheers.

ndjurov
Posts: 65
Joined: Wed Mar 25, 2020 11:34 pm

Re: NVS - what am I missing?

Postby ndjurov » Wed Mar 03, 2021 3:24 am

For those interested, here is a short discussion about the flash/reset scenario:
https://github.com/espressif/esp-idf/issues/4917

Who is online

Users browsing this forum: Bing [Bot] and 158 guests