Closed sebi5361 closed 4 years ago
A more general question is: how "soft" should soft reset be? Should it
[ ] reset cellular connectivity (disconnect from GPRS, etc) [ ] reset power setup (remove watchdog, disable GPIOs, disable gps, reset minimal frequency) [ ] reset time
maybe more?
I believe "soft" should be the same as when powering the board on. Your list seems exhaustive. I don't think we are missing anything.
I am not that sure, but it seems the reset button is not hard wired to resetting the board. I say this because it needs to be pressed and released, and in the debugger some kind of error shows up at that time. Maybe there is a way to trigger the very same process with the soft reset?
Ok, I think it is a good first bug to fix for you or anyone else willing to contribute. What you need to do is:
modmachine.c
and put modmachine_watchdog_off
into modmachine_init0
;modmachine_watchdog_off
before modmachine_init0
;😎
I have noticed that when rebooting the board with
Ctrl-D
the watchdog remains on (if set before). It might be the same withmachine.reset()
.If I remember well, this was also the case on some other MicroPython ports but got fixed.