A custom deployment of MicroPython designed specifically for Frame. Check out the user docs here.
For those of you who want to modify the standard firmware, keep on reading.
-
Ensure you have the ARM GCC Toolchain installed.
-
Ensure you have the nRF Command Line Tools installed.
-
Clone this repository along with submodules and build the mpy-cross toolchain:
git clone https://github.com/brilliantlabsAR/frame-micropython.git cd frame-micropython git submodule update --init git -C network_core/micropython submodule update --init lib/micropython-lib make -C network_core/micropython/mpy-cross
-
You should now be able to build the project by calling
make
from theframe-micropython
folder.make
-
Before flashing an nRF5340, you may need to unlock the chip first.
nrfjprog --recover
-
You should then be able to flash the device.
make flash
-
Open the project in VSCode.
There are some build tasks already configured within
.vscode/tasks.json
. Access them by pressingCtrl-Shift-P
(Cmd-Shift-P
on MacOS) →Tasks: Run Task
.- Build
- Build & Flash Chip
- Erase & Unlock Chip
- Clean
- Release
-
You many need to unlock the device by using the
Erase Chip
task before programming or debugging. -
To enable IntelliSense, be sure to select the correct compiler from within VSCode.
Ctrl-Shift-P
(Cmd-Shift-P
on MacOS) →C/C++: Select IntelliSense Configuration
→Use arm-none-eabi-gcc
. -
Install the Cortex-Debug extension for VSCode in order to enable debugging.
-
A debugging launch is already configured within
.vscode/launch.json
. Run theJ-Link
launch configuration from theRun and Debug
panel, or pressF5
. The project will automatically build and flash before launching. -
To monitor the logs, run the task
RTT Console
and ensure theJ-Link
launch configuration is running.
For information on developing and flashing the FPGA binary. Check the Frame FPGA repository.