On a board with a main.py, mpftp run soft-resets first — which boots main.py instead of the uploaded script, and the run times out. The workaround is renaming /main.py aside and restoring it afterwards, which is easy to forget half-done.
Request: a flag such as run --skip-main that enters raw REPL without letting main.py execute (the raw-REPL soft reboot already suppresses main.py in mpremote — surfacing that behavior may be all this needs). Useful for anyone iterating on a board that autostarts an app.
On a board with a
main.py,mpftp runsoft-resets first — which bootsmain.pyinstead of the uploaded script, and the run times out. The workaround is renaming/main.pyaside and restoring it afterwards, which is easy to forget half-done.Request: a flag such as
run --skip-mainthat enters raw REPL without lettingmain.pyexecute (the raw-REPL soft reboot already suppresses main.py in mpremote — surfacing that behavior may be all this needs). Useful for anyone iterating on a board that autostarts an app.