forked from viernullvier/neogrid
| .. | ||
| examples/nanogrid-lights-demo | ||
| OLIMEX_PICO2_XL | ||
| .gitignore | ||
| firmware.elf | ||
| firmware.uf2 | ||
| README.md | ||
firmware
Custom micropython build for the Olimex RP2350B-XL. Comes with some features enabled and modules bundled that are not part of an eventual upstream build.
build instructions
- Make sure to have a compiler toolchain supporting the RP2 architecture installed (Mac:
brew install gcc-arm-embedded) - Clone pico-sdk (to this folder or somewhere else on your machine)
- Change to the pico-sdk folder and run
git submodule update --init - Point an environment variable
PICO_SDK_PATHto the pico-sdk folder - Install picotool
- Clone the
micropythonrepo (to this folder or somewhere else on your machine) - From within the
micropythonrepo root, runmake -C mpy-cross - Copy the
OLIMEX_PICO2_XLfolder tomicropython/ports/rp2/boardsif it doesn't exist; overwrite it if it does - Change to the
micropython/ports/rp2folder - Run
make BOARD=OLIMEX_PICO2_XL submodulesto install dependencies - Run
make BOARD=OLIMEX_PICO2_XL cleanto remove previous build artefacts (if any) - Run
make BOARD=OLIMEX_PICO2_XLto build the firmware
flashing
- The build output can be found in
micropython/ports/rp2/build-OLIMEX_PICO2_XL(or in this folder for convenience) - Connect the MCU board to your computer using a data-capable USB cable
- On the MCU board, hold
bootwhile pressingrst - A new removable disk drive should appear. Copy
firmware.uf2onto this disk drive - this will flash the MCU board with the custom micropython build.
using
Once micropython is flashed, copy boot.py, main.py and any auxiliary files for the specific hardware type onto the MCU flash. Refer to the micropython docs for further info.