OpenOCD with Raspberry Picoprobe for macOSIn January 2021, the Raspberry Pi Foundation launched its first microcontroller board, the Raspberry Pi Pico. A small development board with a brand new microcontroller chip, the RP2040 was designed by Raspberry Pi in the UK. Debugging the code inside the RP2040 chip may be done with another Raspberry Pi Pico board. A new version of the Open On-Chip Debugger (OpenOCD) is needed to use the development board as debug probe. The source code for OpenOCD is available at the Raspberry Pi Github. This Visual Studio Code extension contains the compiled version of OpenOCD with support for the Raspberry Pi Pico probe. InstallPrerequisiteOpenOCD needs a few libraries to run. Install the libraries with homebrew. Install homebrewIf you did not install homebrew install it first.
Install libraries with homebrew
OpenOCD version with picoprobeIn Visual Studio Code goto extensions (shift+cmd+x), search for 'chipcode-nl' and install the extension suitable for your operating system. The extension has paths for OpenOCD. You can use it in tasks.json.
Download the Picoprobe UF2 file at the Raspberry Pi Pico getting started website and copy it to the Raspberry Pi Pico board. Picoprobe WiringWiring between the Picoprobe (left) and the target development board (right).
Optional power the target development board from the USB port.
|