From f63c16ce26726fd10da5d95d683f00da73ed0243 Mon Sep 17 00:00:00 2001 From: Correl Date: Tue, 21 Mar 2023 01:11:39 -0400 Subject: [PATCH] updates --- 20230208013649-micropython.org | 7 +++++++ 1 file changed, 7 insertions(+) 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.