Raspberry Pi RP2040

Registry:

https://registry.platformio.org/platforms/platformio/raspberrypi

Configuration:

platform = raspberrypi

RP2040 is a low-cost, high-performance microcontroller device with a large on-chip memory, symmetric dual-core processor complex, and rich peripheral.

For more detailed information please visit vendor site.

Examples

Examples are listed from Raspberry Pi RP2040 development platform repository:

Debugging

Debugging - “1-click” solution for debugging with a zero configuration.

Tools & Debug Probes

Supported debugging tools are listed in “Debug” column. For more detailed information, please scroll table by horizontal. You can switch between debugging Tools & Debug Probes using debug_tool option in “platformio.ini” (Project Configuration File).

Warning

You will need to install debug tool drivers depending on your system. Please click on compatible debug tool below for the further instructions.

External Debug Tools

Boards listed below are compatible with Debugging but DEPEND ON external debug probe. They ARE NOT READY for debugging. Please click on board name for the further details.

Name

MCU

Frequency

Flash

RAM

Arduino Nano RP2040 Connect

RP2040

133MHz

2MB

264KB

Raspberry Pi Pico

RP2040

133MHz

2MB

264KB

Stable and upstream versions

You can switch between stable releases of Raspberry Pi RP2040 development platform and the latest upstream version using platform option in “platformio.ini” (Project Configuration File) as described below.

Stable

; Latest stable version, NOT recommended
; Pin the version as shown below
[env:latest_stable]
platform = raspberrypi
board = ...

; Specific version
[env:custom_stable]
platform = raspberrypi@x.y.z
board = ...

Upstream

[env:upstream_develop]
platform = https://github.com/platformio/platform-raspberrypi.git
board = ...

Packages

Name

Description

framework-arduino-mbed

Arduino framework supporting mbed-enabled boards

tool-jlink

Software and Documentation Pack for SEGGER J-Link debug probes

tool-openocd-raspberrypi

Open On-Chip Debugger for Raspberry Pi MCUs

tool-rp2040tools

Tools for interacting with a RP2040 device in BOOTSEL mode or with a RP2040 binary

toolchain-gccarmnoneeabi

GNU toolchain for Arm Cortex-M and Cortex-R processors

Warning

Linux Users:

Windows Users:

Please check that you have a correctly installed USB driver from board manufacturer

Frameworks

Name

Description

Arduino

Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences.

Boards

Note

  • You can list pre-configured boards by pio boards command

  • For more detailed board information please scroll the tables below by horizontally.

Arduino

Name

Debug

MCU

Frequency

Flash

RAM

Arduino Nano RP2040 Connect

External

RP2040

133MHz

2MB

264KB

Raspberry Pi

Name

Debug

MCU

Frequency

Flash

RAM

Raspberry Pi Pico

External

RP2040

133MHz

2MB

264KB