Micropython-main-boot: Difference between revisions
Jump to navigation
Jump to search
| Line 18: | Line 18: | ||
Interacting with MicroPython is almost impossible during the processing of {{fname|boot.py}} . | Interacting with MicroPython is almost impossible during the processing of {{fname|boot.py}} . | ||
== main.py == | == main.py script == | ||
The {{fname|main.py}} file is where to store the user program to execute. | |||
xxxx | |||
Revision as of 01:06, 28 April 2026
Startup Sequence
When powered up, the PymateIO initialize the MicrPython virtual machine which executes the following steps.
boot.py script
Loading the boot.py is the first operation performed by the virtual machine.
The virtual machine jump to the next step if the file is not available.
The role of the boot.py script is to perform a quick hardware initialization at startup.
The boot.py script should be short and executes its content as fast as possible.
The MicroPython virtual machine will stays locked as long as the boot.py have not terminated its processing.
Interacting with MicroPython is almost impossible during the processing of boot.py .
main.py script
The main.py file is where to store the user program to execute.
xxxx
