Easy access to the SWD debug port with a special pin header

The Bus Pirate 5 and newer have a SWD debug port accessible from the back of the case. This allows to debug the firmware running on the BusPirate by connecting some SWD-capable debug adapter, for example the official RasPi Debug Probe, a RasPi Pico flashed with the Debug Probe firmware or another Bus Pirate with Debug Probe firmware. It is planned to also add RTT channels (see here) to the firmware in the future, probably making access to SWD helpful to a wider range of users.

While a SWD-capable debug probe is probably something many Bus Pirate users already have at hand or can easily get, stable physical access to the SWD pins on the Bus Pirate isn’t that straightforward. The SWD pins use round pin headers that are probably easy to connect during production, but aren’t that common otherwise.

I’m aware of two threads here with solutions to this:

And I want to add another one to the collection:

I found this little adapter with round pin headers on both sides, instead of only on one side:

I got it for about 5 cents per pcs. from LCSC:

This allows to use regular grabbers (like the ones available with the Bus Pirate) to make a stable connection to the SWD pins like this:

Since these little adapter pin headers are so cheap and small, I suggest to add one to the accessories bag that comes with each Bus Pirate. To give every user easy & stable physical access to the debug port.

4 Likes

Excellent suggestion! I even had enough of these in my mystery box to outfit all 3 of my BPs

1 Like

That’s a good suggestion. We will do that the next time we’re packaging parts kits.

4 Likes

Very good.

Maybe add one or two spares of the sticky feet for the new enclosure too.

3 Likes

Good point, I forgot the sticky feet update :slight_smile:

4 Likes

I used round milled pin headers which you can get from Amazon or from ali express to make my adapter.