-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ESP2S2: Resetting either programmatically or via watchdog causes device to go into SAFE_MODE #3988
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
Comments
There are two different issues here :-
|
|
The reason is stored in a supposedly "reserved by ESP-IDF". Check if TinyUF2 is using the same RTC register as CircuitPython. Try a different one? |
I believe this was already resolved by this pull request I made that was accepted |
Thanks! We think there may still be a problem with UF2 builds and will re-test. |
Hi, I have tested this on the nightly build from last night - Adafruit CircuitPython 7.0.0-alpha.5-175-g8da98eb1f on 2021-08-10; FeatherS2 with ESP32S2 microcontroller.reset() works as expected however resetting from the watchdog still goes to safe mode on the FeatherS2 |
Yes, same problem as @ThinkTransit described. My setup: Adafruit ESP32-S2 Metro, UF2 (0.5.2), cpy (7.0.0).
or directly in Arduino CPP:
It acts just as a regular reset (single button press). By reading the reset reason I always get: "RTCWDT_RTC_RESET" |
Problem has been solved. The UF2 Bootloader must be completely reinstalled to update all partitions. |
Running this:
causes the board to reset and go into safe mode instead of normal mode.
Similarly, setting up a watchdog with the following code.py:
causes the microcontroller to reset after 10.0 seconds (as expected), but the microcontroller resets into safe mode instead of resetting and re-running code.py, which is the usual intent of watchdog usage.
Product: FeatherS2
CircuitPython version: adafruit-circuitpython-unexpectedmaker_feathers2-en_US-6.1.0-beta.3.uf2
Related but not same issue: #3884
The text was updated successfully, but these errors were encountered: