Reset causes for machine.reset()
-
I got a GPy with pysense and when i do a soft reset in code
machine.reset()The documentation states that the reset cause should be:
"Resets the device in a manner similar to pushing the external RESET button"However the reset cause I get is WDT_RESET (2).
While when I do a button reset on the GPY I get PWRON_RESET (0).Is this a known bug?
-
Hi @jardar
"similar" is the key word there, actually machine.reset() is a watchdog reset you found, more like a soft reset and different in several ways from pushing the physical reset button (which drives the reset line of the ESP32)But I agree maybe the documentation could be more clear on that.
-
Thanks.
Is there a way to distinguish a WDT reset (fault condition) vs. a intenden reset by machine.reset()?
Best regards
Jardar
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login