Raspberry Pi Pico boards¶
The Raspberry Pi Pico platform by Earle F. Philhower, III provides an excellent solution for all the boards based on the Raspberry Pi RP2040 and RP2350 MCUs.
This platform is lighter and easier to debug than the Arduino Mbed-OS as it does not rely on Mbed-OS.
The installation is performed with Arduino-CLI.
Install¶
To install the Raspberry Pi Pico RP2040 boards,
-
Ensure the Arduino tools, CLI or IDE, are installed.
-
Ensure the
arduino-cli.yaml
configuration file for Arduino-CLI or the Additional boards manager URLs for Arduino IDE includes
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
-
Open a Terminal window.
-
Run
$ |
|
For more information on the installation of the Arduino IDE,
- Please refer to the Installing via Arduino Boards Manager section on the GitHub repository and to the extensive Arduino-Pico documentation.
Declare the programmer-debugger¶
For Linux systems, update udev
.
Picoprobe¶
The Picoprobe uses a Raspberry Pi Pico as programmer-debugger.
- Declare it with
$ $ |
|
For more information,
- Please refer to Uploading Sketches with Picoprobe .
Pico-debug¶
The pico-debug uses one core of the Raspberry Pi Pico to debug the other core.
- Declare it with
$ $ |
|
For more information,
- Please refer to Uploading Sketches with pico-debug .
Debug Probe¶
The Raspberry Pi Debug Probe is the official debugger for the Raspberry Pi Pico boards.
- Declare it with
$ $ |
|
For more information,
- Please refer to Raspberry Pi Debug Probe .
Develop¶
Use the libraries for WiFi¶
- Edit the main
Makefile
to list the required libraries.
APP_LIBS_LIST = WiFi Updater MD5Builder lwIP_Ethernet lwIP_CYW43 SPI LittleFS PicoOTA
Use the libraries for Bluetooth¶
- Edit the main
Makefile
to list the required libraries.
APP_LIBS_LIST = BTstackLib SPI
Upload¶
Debug¶
The Raspberry Pi Pico board exposes the SWD signals through SWCLK and SWDIO pins.
- Connect
Raspberry Pi Pico | Segger J-Link debug probe |
---|---|
SWCLK | SWCLK |
SWDIO | SWDIO |
+3.3V | VTref |
Ground | Ground |
To power the Raspberry Pi Pico by the Segger J-Link debug probe,
-
Please refer to Power the board with the Segger J-Link debug probe.
-
Connect
Raspberry Pi Pico | Segger J-Link debug probe |
---|---|
Vbus | +5V |
Ground | Ground |