-
Notifications
You must be signed in to change notification settings - Fork 220
machine.reset() results in WDT reset #110
Comments
One more note -- made a quick test app using just the IDF -- it resets normally. |
Did the test app enable the CONFIG_WIFI_ENABLED option? That is enabled by uPy and might be the cause of the issue. |
Yes. It's the standard template: https://github.com/espressif/esp-idf-template.git, which is a WiFi demo. I only modified it to add my own WiFi credentials, and made it call Edit: The |
Revisiting this issue after many IDF updates, reset() seems to work better, but still not correctly: it doesn't have any IllegalInstruction's, instead it just hangs for a bit then there's a WDT reset. |
machine.reset() works with latest upstream code. |
Issuing a
machine.reset()
results in a slew ofIllegalInstruction
errors followed by a WDT timeout.I'm trying to implement
machine.reset_cause()
, but this problem means that whenever you usemachine.reset()
,machine.reset_cause()
will returnmachine.WDT_RESET
Code is here: https://github.com/MrSurly/micropython-esp32/tree/dev-reset-cause, branched from mainline ESP32. Note that
machine.reset()
has not been modified.I guess my question is: Should this be an issue for the IDF? Or is it a problem in µPy?
Edit: Using latest IDF does not fix this. Yes, I am doing a full
make clean
andmake erase
beforemake deploy
.The text was updated successfully, but these errors were encountered: