-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Device resets instead of waking up from deep sleep (IDFGH-4341) #6179
Comments
@Totalus Could you please try turning off the brownout detector in menuconfig, under Component config -> ESP32-S2 specific, and see the problem still exists? |
@igrr It solved the issue. Nice catch ! How do you explain that the brown out detector triggers this easily ? I wouldn't expect it to do so on a simple boot of the IC. |
@Totalus Thanks for the confirmation. This might be a hardware issue. I'll follow up internally to see whether this is something we can work around in ESP-IDF. |
I'm wondering, why does it not reset with the I think I also had brownout issues elsewhere, but they were never flagged as brownouts, just as simple resets, which makes it harder to figure out. |
On S2 the brown out detector would occasionally trigger erroneously during deep sleep. Disable it before sleeping to circumvent this issue. Closes #6179
On S2 the brown out detector would occasionally trigger erroneously during deep sleep. Disable it before sleeping to circumvent this issue. Closes #6179
On S2 the brown out detector would occasionally trigger erroneously during deep sleep. Disable it before sleeping to circumvent this issue. Closes #6179
Problem Description
After deep sleep timeout, the device sometimes boots up as a reset
rst:0x1 (POWERON)
instead of waking up from deep sleeprst:0x5 (DSLEEP)
as it should. I've observed that behavior with other wake up sources as well (e.g RTC GPIOs).Environment
v4.2-rc-5-g511965b26
idf.py
xtensa-esp32-elf-gcc.exe (crosstool-NG esp-2020r3) 8.4.0
Expected Behavior
Device waking up from deep sleep
rst:0x5 (DSLEEP)
.Actual Behavior
Device often waking up in reset
rst:0x1 (POWERON)
, which causes all the RTC memory to be lost (time is reset).Steps and Code to reproduce this issue
Start from the hello_world example project and replace the main code by the following.
Flash this on the IC and check the logs. Once in a while I the
ERROR: Device reset
prints out (see log below).Debug Logs
I won't attach all of the log because its the same thing over an over, but here's a snapshot where you can see some normal wake up
rst:0x5 (DSLEEP)
and a resetrst:0x1 (POWERON)
.See highlighted lines:
The text was updated successfully, but these errors were encountered: