freematics-firmware_v5-micr.../Doc/Building.md

13 lines
529 B
Markdown
Raw Permalink Normal View History

2024-06-29 22:39:13 -06:00
Compiling the MicroPython sourcecode to `.mpy` turns it into "frozen bytecode" which results in lower memory consumption
during execution.
```shell
git clone https://github.com/micropython/micropython.git
cd micropython/mpy-cross
make
cp build/mpy-cross <project root>
```
The `upload.sh` script will manage building this MicroPython project. If you get an error on the `Erase` step, that's
2024-06-30 15:20:43 -06:00
fine and due to the files not existing to be erased. Make sure you aren't connected to the device's serial port when
running the script.