Boot script

If a memory card formatted with either a SPIFFS or FAT file system is detected at boot, MaixPy will look for a boot.py file in the root directory of that memory card. If boot.py is found, the system will immediately execute it. And then find main.py and execute it.

If the main.py file is not found, the device will automatically create one on the memory card that offers a basic REPL command line interface. Edit the contents of the main.py file on the memory card to determine what the device does when it is reset or rebooted.

Notes:

  1. Memory cards must be formatted with a SPIFFS or FAT filesystem, not FAT32.
  2. FAT memory cards will have a mount point of /sd, while SPIFFS cards will appear as /flash.
powered by GitbookFile Modify: 2020-08-26 15:56:59

results matching ""

    No results matching ""