-
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
Detect factory reset after deep sleep (IDFGH-1536) #3800
Comments
github-actions
bot
changed the title
Detect factory reset after deep sleep
Detect factory reset after deep sleep (IDFGH-1536)
Jul 19, 2019
Good suggestion. How about something like
|
@negativekelvin That seems reasonable and the safest option. Thank you for your code, I will use it for my current project and I hope that it eventually makes its way in esp-idf! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Problem Description
If the factory reset gpio is asserted while booting from deep-sleep then the application is started with a possibly incorrect state because of preserved RTC memory but possibly different boot image and gone nvs and assumption that the firmware running before deep-sleep was the same.
Expected Behavior
One of three things:
Actual Behavior
The application boots thinking it just woke from normal deep sleep and assumes its RTC variables and previous boot image are the same.
Steps to repropduce
Code to reproduce this issue
Debug Logs
Other items if possible
The text was updated successfully, but these errors were encountered: