Skip to content

Build & Flash

  • MicroPython build environment (Linux recommended)
  • ARM GCC toolchain — arm-none-eabi-gcc
  • CMake ≥ 3.13

Run these commands from the root of the MicroPython repository:

Terminal window
make -C mpy-cross/ -j 16
make -C ports/rp2 BOARD=NXPICO_M clean
make -C ports/rp2 BOARD=NXPICO_M submodules
make -C ports/rp2 BOARD=NXPICO_M -j 16

The output .uf2 file will be at:

ports/rp2/build-NXPICO_M/firmware.uf2

To target the RP2350A’s RISC-V cores instead, use the NXPICO_M_RISCV variant:

Terminal window
make -C ports/rp2 BOARD=NXPICO_M BOARD_VARIANT=RISCV -j 16
  1. Hold BOOTSEL while plugging in the USB-C cable.
    Alternatively, run machine.bootloader() at the MicroPython REPL.
  2. A USB mass storage device will appear on the host.
  3. Copy firmware.uf2 to the mounted drive.

The board reboots automatically once the transfer completes.