Prevent MAIN.PY Running if BOOT.PY Aborts #10825
Unanswered
DS256
asked this question in
RP2040 / Pico
Replies: 2 comments 6 replies
-
You could try to raise an exception in boot.py. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Ok, so it sounds like there is nothing in micropython/RPI Pico to handle this. My fall back is for BOOT and MAIN to "create/check for" a CRASH.TXT file as a signal that an unrecoverable problem has occurred and requires manual intervention. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've tried using sys.exit(1) from BOOT.PY but MAIN.PY still runs. I've looked at the 'machine' library but didn't find any 'stop' type function. Any suggestions or will MAIN.PY always run.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions