Skip to content

Raspberry Pi Pico 2

lbuild config: modm: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>

Configuration

<library>
  <options>
    <option name="modm:target">rp2350a</option>
    <option name="modm:platform:core:boot2">w25q080</option>
    <option name="modm:platform:core:flash_size">4Mi</option>
  </options>
  <modules>
    <module>modm:board:rp-pico2</module>
  </modules>
</library>