Skip to content

Raspberry Pi Pico 2

lbuild module: modm:board:rp-pico2

RP2350A Official System Development Board with 4MiB flash. See https://www.raspberrypi.com/products/raspberry-pi-pico-2

Programming

UF2

The RP2350 ships with a UF2 bootloader in ROM.

To upload your application, connect the RP2350 via USB while holding the BOOTSEL button, convert the ELF to UF2 format by calling scons uf2 or make uf2 and copy the generated .uf2 file to the mounted virtual disk.

PICOBOOT

With picotool installed, call scons program-picoboot or make program-picoboot to program, verify and start your application on a device in BOOTSEL mode without using the virtual disk.

OpenOCD

Connect a CMSIS-DAP probe, for example the Raspberry Pi Debug Probe, to the SWD header and call scons program or make program. OpenOCD supports the RP2350 since v0.12.0+dev with target/rp2350.cfg.

Logging

To log via RTT attach a debugger to the SWD port and select the RTT option:

<option name="modm:board:rp-pico2:logger">RTT</option>

Then log using:

scons log-rtt

To log via UART, attach a serial adapter to GPIO0 (TX, 115200 baud) and select the UART option:

<option name="modm:board:rp-pico2:logger">UART</option>

This module is only available for rp2350a.

Options

logger

Logging mechanism

Default: Disabled
Inputs: [Disabled, RTT, UART]
Input Dependency: RTT -> [modm:platform:rtt, modm:debug]
Input Dependency: UART -> [modm:platform:uart:0, modm:debug]

Dependencies

modm:board:rp-pico2 modm_board_rp_pico2 modm: board: rp-pico2 [modm_platform_rtt__modm_debug] [modm: platform: rtt, modm: debug] modm_board_rp_pico2->[modm_platform_rtt__modm_debug] [modm_platform_uart_0__modm_debug] [modm: platform: uart: 0, modm: debug] modm_board_rp_pico2->[modm_platform_uart_0__modm_debug] modm_platform_clock_timer modm: platform: clock.timer modm_board_rp_pico2->modm_platform_clock_timer modm_platform_clockgen modm: platform: clockgen modm_board_rp_pico2->modm_platform_clockgen modm_platform_core modm: platform: core modm_board_rp_pico2->modm_platform_core modm_platform_gpio modm: platform: gpio modm_board_rp_pico2->modm_platform_gpio modm_platform_usb modm: platform: usb modm_board_rp_pico2->modm_platform_usb

Limited availability: Check with 'lbuild discover' if this module is available for your target!