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¶
Limited availability: Check with 'lbuild discover' if this module is available for your target!