Raspberry Pi Foundation launches $12 USB Debug Probe (a plug-and-play debug kit) .

The Raspberry Pi Foundation has a new gadget: a cheap, easy USB probe for debugging bare-metal code on a Pi Pico… but it should work with several other devices too.

The Debug Probe is a device to help debug bare-metal software on the Raspberry Pi Pico. The Pico is the Foundation's $4 single-board computer for microcontroller type roles. In embedded computers like this, there's often no display output, and in typical use, no operating system – both of which make it tricky to monitor what it's doing, or more to the point, work out why it's not doing it.

A common way to peer into the memory of an embedded Arm device and work out what it's doing is Arm's SWD interface, or Serial Wire Debug – broadly, Arm's three-wire version of the traditional four- or five-wire JTAG interface.

However, to use those SWD signals, you need a device to read and translate them into something another computer can read and interpret, using software such as the FOSS OpenOCD or pyOCD. (In this context, OCD stands for On-Chip Debugger.) This device is called a debug probe.

Conveniently, a Raspberry Pi's GPIO interface can talk SWD over a few of its pins [PDF]. This means you can use one Pi to debug another Pi. That even includes the Pi Pico using some special firmware called Picoprobe. This is rather cheaper than a dedicated hardware debug probe. The snag is that you'll still need to wire up some circuits, as this blogpost describes.

Even if it's versatile – for instance, you can also use SWD to upload software into a Pi Pico from another Pi – it's not that easy, and if you want to use a bigger, faster computer, such as a PC or Mac, you then need to interface your Pi-based probe to that.

--- What is a debug probe? ---

All modern Arm-based microcontrollers, including RP2040, implement Arm’s CoreSight debug architecture. Each processor core, like the Cortex-M0+ used in RP2040, provides an Access Port (AP) which can be used to single step, set breakpoints, observe the values of processor registers, and access memory and peripherals via the processor’s bus interface.

The microcontroller itself provides a Debug Port (DP), which is connected externally to pins on the package, and internally to each AP in the system. RP2040 exposes its DP via a low-pin-count Serial Wire Debug (SWD) port: by talking the SWD protocol over this port, a host computer can control each core’s AP, in order to debug a program running on the core.

A debug probe provides a bridge between USB and the SWD protocol. While not strictly required if the host computer is a Raspberry Pi (you can wire up the target’s SWD port directly to the GPIO header on a Raspberry Pi), it’s much more convenient to connect via USB. And if you’re using a PC or Mac, USB is your only option.

6075 views

Raspberry Pi Foundation launches $12 USB Debug Probe (a plug-and-play debug kit)

Uploaded to 7 months ago

Raspberry Pi Foundation launches $12 USB Debug Probe (a plug-and-play debug kit) .

The Raspberry Pi Foundation has a new gadget: a cheap, easy USB probe for debugging bare-metal code on a Pi Pico… but it should work with several other devices too.

The Debug Probe is a device to help debug bare-metal software on the Raspberry Pi Pico. The Pico is the Foundation's $4 single-board computer for microcontroller type roles. In embedded computers like this, there's often no display output, and in typical use, no operating system – both of which make it tricky to monitor what it's doing, or more to the point, work out why it's not doing it.

A common way to peer into the memory of an embedded Arm device and work out what it's doing is Arm's SWD interface, or Serial Wire Debug – broadly, Arm's three-wire version of the traditional four- or five-wire JTAG interface.

However, to use those SWD signals, you need a device to read and translate them into something another computer can read and interpret, using software such as the FOSS OpenOCD or pyOCD. (In this context, OCD stands for On-Chip Debugger.) This device is called a debug probe.

Conveniently, a Raspberry Pi's GPIO interface can talk SWD over a few of its pins [PDF]. This means you can use one Pi to debug another Pi. That even includes the Pi Pico using some special firmware called Picoprobe. This is rather cheaper than a dedicated hardware debug probe. The snag is that you'll still need to wire up some circuits, as this blogpost describes.

Even if it's versatile – for instance, you can also use SWD to upload software into a Pi Pico from another Pi – it's not that easy, and if you want to use a bigger, faster computer, such as a PC or Mac, you then need to interface your Pi-based probe to that.

--- What is a debug probe? ---

All modern Arm-based microcontrollers, including RP2040, implement Arm’s CoreSight debug architecture. Each processor core, like the Cortex-M0+ used in RP2040, provides an Access Port (AP) which can be used to single step, set breakpoints, observe the values of processor registers, and access memory and peripherals via the processor’s bus interface.

The microcontroller itself provides a Debug Port (DP), which is connected externally to pins on the package, and internally to each AP in the system. RP2040 exposes its DP via a low-pin-count Serial Wire Debug (SWD) port: by talking the SWD protocol over this port, a host computer can control each core’s AP, in order to debug a program running on the core.

A debug probe provides a bridge between USB and the SWD protocol. While not strictly required if the host computer is a Raspberry Pi (you can wire up the target’s SWD port directly to the GPIO header on a Raspberry Pi), it’s much more convenient to connect via USB. And if you’re using a PC or Mac, USB is your only option.

Canon Canon EOS 5DS R 1/125s ƒ/8 ISO100 100mm — More Exif data

  • Manufacturer Canon
  • Model Canon EOS 5DS R
  • Exposure Time 1/125s
  • Aperture ƒ/8
  • ISO 100
  • Focal Length 100mm
  • X Resolution 150 dpi
  • Y Resolution 150 dpi
  • Resolution Unit inches
  • Color Space sRGB
  • Orientation Horizontal (normal)
  • Software Adobe Photoshop 23.5 (Macintosh)
  • Scene Capture Type Standard
  • Exposure Bias Value 0/1
  • Max Aperture Value 3
  • Exposure Program Manual
  • Exposure Mode Manual
  • Metering Mode Multi-segment
  • Flash Off, Did not fire
  • White Balance Auto
  • Exif Version 0231
  • Date Time Original 2022-10-13 15:11:16
  • Date Time Digitized 2022-10-13 15:11:16
Edit or resize any image by clicking the image preview
Edit any image by touching the image preview
Uploading 0 image (0% complete)
The queue is being uploaded, it should take just a few seconds to complete.
Upload complete
Uploaded content added to . You can create a new album with the content just uploaded.
Uploaded content added to .
You can create a new album with the content just uploaded. You must create an account or sign in to save this content into your account.
No image have been uploaded
Some errors have occurred and the system couldn't process your request.
    or cancelcancel remaining
    Note: Some images couldn't be uploaded. learn more
    Check the error report for more information.
    JPG PNG BMP GIF WEBP 16 MB