EasyManua.ls Logo

Raspberry Pi Pico Series - Appendix A: Debugprobe; Building Openocd; Install Openocd

Raspberry Pi Pico Series
54 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix A: Debugprobe
Raspberry Pi provides two ways to debug Pico-series devices:
the Raspberry Pi Debug Probe
debugprobe firmware running on a second Pico or Pico 2
Both methods provide a way to debug Pico-series devices on platforms that lack GPIOs to connect directly to UART or
SWD, such as Windows, macOS, and Linux. The debugging device connects to your usual computer using USB, and to
the Pico using SWD and UART.
Building OpenOCD
Shortly after RP2350 launch you will likely need to build openocd from source if not using the VS Code extension. You
can get a binary release from https://github.com/raspberrypi/pico-sdk-tools.
$ git clone https://github.com/raspberrypi/openocd.git
$ cd openocd
$ ./bootstrap
$ ./configure --disable-werror
$ make -j4
To start openocd from the build directory, you can use:
For RP2350:
sudo src/openocd -s tcl -f interface/cmsis-dap.cfg -f target/rp2350.cfg -c "adapter speed 5000"
For RP2040:
sudo src/openocd -s tcl -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000"
Install OpenOCD
To get started, you’ll need OpenOCD.
To install OpenOCD, run the following command in a terminal:
$ sudo apt install openocd
To install OpenOCD on macOS, run the following command:
$ brew install openocd
Getting started with Raspberry Pi Pico-series
Building OpenOCD 16

Table of Contents

Related product manuals