Replies: 1 comment 2 replies
-
RTC memory is only retained for a few reset reasons - a hard-reset (i.e. reset button) definitely won't retain RTC memory. For saving WiFi credentials you really want to use flash memory (e.g. the NVS partition which espflash includes by default or use a custom partition). It's also what ESP-IDF does |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing on ESP32S3.
I want to identify repeating resets to erase wifi credentials stored in flash.
I tried using rtc memory for that using:
It works when I reset via
espflash
(pressing Crtl-R several times).When I reset using the onboard reset button it doesn't.
Also, the log disconnects so I can't debug it.
Should I do this differently? It looks like the memory doesn't persist across these resets.
Is there memory that isn't erased on external button reset that I could use (other than flash)?
Beta Was this translation helpful? Give feedback.
All reactions