diff --git a/20230208013649-micropython.org b/20230208013649-micropython.org index 898b68e..a2a0cb6 100644 --- a/20230208013649-micropython.org +++ b/20230208013649-micropython.org @@ -29,3 +29,10 @@ functions in two modes: is executed after =boot.py= and functions as an application code entry point. /Execution of this file is skipped if the REPL is not in "friendly" mode, e.g. if a tool has switched to the "raw" REPL./ + +The =mpremote= tool uses the raw REPL to execute its commands, including +performing a soft reset. Therefore, it is advisable to keep application code +(particularly application loops) in =main.py= rather than =boot.py= so that +=mpremote= commands aren't blocked by running application code. This way, +application code is only executed when requested explicitly while developing, +but will still execute automatically during a normal device boot.