You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,14 +54,18 @@ The framework exploits the standard behaviour of MicroPython at start/reset/soft
54
54
The framework's boot.py only requires two lines for the following operations:
55
55
56
56
* import the minimum required parts of arduino_tools (common) from the board's File System (installed as a package in [flash]/lib/arduino_tools)
57
-
* invoke the method `load_app()` to enter the default app's path and apply some temporary settings to configure the running environment (search paths and launch configuration changes) which will be reset at the next start.
57
+
* invoke the method `load_app(app_name = None, cycle_mode = False)` to enter the default app's path and apply some temporary settings to configure the running environment (search paths and launch configuration changes) which will be reset at the next start.
58
58
59
59
If no default app is set, it will fall back to the `main.py` in the board's root if present.
60
60
No error condition will be generated, as MicroPython is capable of handling the absence of `boot.py` and/or `main.py` at C level.
61
61
62
-
If a default app is set, the `load_app()` will issue an `os.chdir()` command and enter the app's folder.
62
+
If a default app is set, the `load_app(app_name = None, cycle_mode = False)` will issue an `os.chdir()` command and enter the app's folder.
63
63
MicroPython will automatically run the main.py it finds in its Current Working Directory.
64
64
65
+
`cycle_mode`: when this parameter is `True`, the loader will pop first item from the `boot.cfg` file and append it to the end.
66
+
This could be useful if you have a board in demo mode (needing to display multiple applications) or need to run applications in a sequence for RAM or features constraints.
67
+
You could think of a board that needs to connect to Internet to download data, but would not be able to process the data with the RAM available.
68
+
65
69
**NOTES:**
66
70
67
71
* each app can contain a `.hidden` file that will hide the app from AMP, effectively preventing listing or deletion.
0 commit comments