Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4397

MicroPython • Build MicroPython from source for Pico 2 and RP235X boards

$
0
0
The latest MicroPython master branch now has board definitions for 'RPI_PICO2' so MicroPython can be built from source with that -

For Pico 2 ARM ...

Code:

cd ~/pico/micropython/ports/rp2mkdir build-pico_2cd build-pico_2cmake -DMICROPY_BOARD=RPI_PICO2 ..makels -l firmware.uf2
For Pico 2 RISC-V ...

Code:

cd ~/pico/micropython/ports/rp2mkdir build-pico_2_riscvcd build-pico_2_riscvcmake -DMICROPY_BOARD=RPI_PICO2 -DMICROPY_BOARD_VARIANT=RISCV ..makels -l firmware.uf2
I haven't tested either to check they work and have no idea of current MicroPython compatibility with RP235X hardware. The '.uf2' generated should be equivalent to the same preview version available for download but I haven't checked that either.

It should be possible to create board files and build for Pimoroni's Pico Plus 2, Pimoroni's Pico Plus 2W, even fake a Raspberry Pi Pico 2W before that is officially released for those who want to be ahead of the curve.

Remember The First Rule of Update Club is to clean out any existing build directories if 'cmake' throws weird errors.

Statistics: Posted by hippy — Wed Oct 16, 2024 3:23 pm — Replies 0 — Views 56



Viewing all articles
Browse latest Browse all 4397

Trending Articles