A RP2040 based debug probe; A USB device that provides a UART serial port and SWD interface. Inspired by the Raspberry Pi Debug Probe I wanted to make my own debug probe as a fun project but implement custom features like a Type-C connector and regular (non JST) connectors while still keeping the original board footprint.
- RP2040 MCU (Duh)
- 16Mbit Flash
- USB-C Connector
- 32mm X 22mm Board Footprint
- USB to UART/SWD Interfaces With Level Shifters
- Uses regular 2.54mm Pitch Headers
- Status LEDs for serial interfaces and power
- Hold the button on the board while plugging in the USB-C cable.
- The board will appear as a mass storage device.
- Drag and drop the
debugprobe.uf2file from/firmwareonto the device.
The RP2040 will reboot, and the status LED should turn green. It’s now ready to use as a USB-to-UART/SWD bridge.
To use it as a USB-to-UART adapter, open the corresponding COM port in your preferred tool and start communicating.
Schematic pdf is available under the /hardware/PCB folder and the project's KiCad files can be found under /hardware/PCB/kicad.
The case files can be found under /hardware/case, It includes the STEP assembly file, and STLs for printing.
Use the top.stl and logo.stl if you want to have the logo printed on top, if not use the top_no_logo.stl.
The rough BOM can be found in BOM.md and it assumes you'll assemble the board yourself. The rough cost for just the PCB and parts (excluding shipping) is around $24.
To build one yourself, use the files in /hardware/production to order the PCB and components, or opt for PCBA.
This project uses the Debugprobe firmware. To build one yourself for this board:
- Clone the debug probe repository, cd into it and update the submodules.
git clone https://github.com/raspberrypi/debugprobe
cd debugprobe
git submodule update --init --recursive
e
-
Open
/include/board_debug_probe_config.hand edit the pin definitions to match the board. -
Make a build directory and cd into it.
mkdir build
cd build
- Run cmake and build the code.
If your environment doesn't contain
PICO_SDK_PATH, then either add it to your environment variables withexport PICO_SDK_PATH=/path/to/sdkor add-DPICO_SDK_PATH=/path/to/sdkto the arguments to CMake below.
cmake ..
make
Once it successfully builds you should have a debugprobe.uf2 file that you can upload to the board.
This project is licensed under the CERN Open Hardware Licence Version 2 Weakly Reciprocal (CERN OHL W)