Continuous execution of boot.py? #16767
Unanswered
speedbird620
asked this question in
Using MicroPython
Replies: 1 comment 1 reply
-
If |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been struggling with the watchdog function a bit when I had an idea.
First "boot.py" will execute first and once it´s code has been executed, the "main.py" will start. Instead of enabling the built in watchdog function in "main.py", why not move the continuous executing code in "main.py" to "boot.py"? If the continuous code in "boot.py" will stop or fail to execute, "main.py" will execute which orders the microprocessor to reboot.
With this I can halt the code and connect with my editor without having to deal with the watchdog resetting the microprocessor after like 8 seconds.
Or am I missing something obvious?
Beta Was this translation helpful? Give feedback.
All reactions