Build & Flash
Prerequisites
Section titled “Prerequisites”- MicroPython build environment (Linux recommended)
- ARM GCC toolchain —
arm-none-eabi-gcc - CMake ≥ 3.13
Build — ARM Cortex-M33
Section titled “Build — ARM Cortex-M33”Run these commands from the root of the MicroPython repository:
make -C mpy-cross/ -j 16make -C ports/rp2 BOARD=NXPICO_M cleanmake -C ports/rp2 BOARD=NXPICO_M submodulesmake -C ports/rp2 BOARD=NXPICO_M -j 16The output .uf2 file will be at:
ports/rp2/build-NXPICO_M/firmware.uf2Build — RISC-V
Section titled “Build — RISC-V”To target the RP2350A’s RISC-V cores instead, use the NXPICO_M_RISCV variant:
make -C ports/rp2 BOARD=NXPICO_M BOARD_VARIANT=RISCV -j 16Flashing
Section titled “Flashing”- Hold BOOTSEL while plugging in the USB-C cable.
Alternatively, runmachine.bootloader()at the MicroPython REPL. - A USB mass storage device will appear on the host.
- Copy
firmware.uf2to the mounted drive.
The board reboots automatically once the transfer completes.