Skip to content

ESP2S2: Resetting either programmatically or via watchdog causes device to go into SAFE_MODE #3988

Closed
@dheera

Description

@dheera

Running this:

import microcontroller
microcontroller.on_next_reset(microcontroller.RunMode.NORMAL)
microcontroller.reset()

causes the board to reset and go into safe mode instead of normal mode.

Similarly, setting up a watchdog with the following code.py:

from microcontroller import watchdog as w
from watchdog import WatchDogMode
w.timeout = 10.0
w.mode = WatchDogMode.RESET
w.feed()
while True:
    pass

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

Metadata

Metadata

Assignees

Labels

bugcrashespressifapplies to multiple Espressif chips

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions