Raspberry Pi Debug Probe and C/C++ SDK & Tools Easy Install on Windows

 In an unexpected move, the Raspberry Foundation  announced the Raspberry Pi Debug Probe, an interesting accessory for the Pico boards (and other boards with ARM microcontrollers).

The Debug Probe board

A few days later, they announced the Raspbery Pi Pico Windows Installer for easier installation of the SDK and the complete toolchain needed for developing C/C++ for the Picos under Windows.

The Debug Probe is a commercial version of the picoprobe (described in the Getting Started with Raspberry Pi Pico document). Like other ARM based microcontroller, the RP2040 includes debugging facilities accessible through an SWD (Serial Wire Debug) port. This port requires two signals, SWIO (data) and SWCLK (clock), plus ground connections. Its use boils down to controlling this signals according to a protocol.

The picoprobe is an normal Raspberry Pi Pico running an special firmware to make it act as an "SWD bridge". It is pretty simple to connect the picoprobe to another Pico (the target of the debugging) . With a little more effort you can get the OpenOCD debugger working, even inside Visual Code.

My take on the picoprobe

The picoprobe (and the Debug Probe) can also be used as a serial to USB adapter for any kind of asynchronous (UART) communication at 3.3V.

The Debug Probe is a beautiful product. Instead of the Pico it uses a dedicated board (with an RP2040, of course) that has connectors for the SWD and UART. It comes in a nice transparent box and three cables:

Back there I said it takes some work to set up the debugger. The same could be said about the toolchain necessary for developing C/C++ applications for the Pico under Windows. Multiple downloads were necessary from various places. Well, no more! The  Raspbery Pi Pico Windows Installer is a single download that automates all this process. It will install in a Windows machine:
  • Arm GNU Toolchain
  • CMake
  • Ninja
  • Python 3.9
  • Git for Windows
  • Visual Studio Code
  • OpenOCD
  • Pico C/C++ SDK
At the end of the install you will be ready to develop (and debug) C/C++ applications for the Pico. A great help indeed.


Comments

Popular posts from this blog

Using the PIO to Interface a PS/2 Keyboard