Skip to the content
2 layers51 × 33.3 mmLnBMP ch32revC, the printed circuit board in 3D

LnBMP ch32revC

mean00/swindle22

A custom version of the blackMagic probe with rust in it

Size
51 × 33.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
42
Nets
62
Pads
146
Tracks, vias
356, 33
Pours
22
Routed
Yes
KiCad
KiCad 7 (file 20231007)
Created
4 Mar 2022
Updated
25 Oct 2026

Overview

LnBMP ch32revC is an open-source printed circuit board by mean00, from the mean00/swindle repository on GitHub. It is a 2-layer board of 51 × 33.3 mm with 42 parts on 62 nets, routed with 356 tracks and 33 vias.

It is built around the CH32V303RCT6 and LM1117-3.3. Its parts include 9 capacitors, 5 resistors, 4 connectors, 2 ICs and 1 diode. It belongs with the sensors and measurement and interfaces and adapters boards and the RISC-V boards of this library.

Main components

2

README

README.md
Swindle Debug Probe

🔧 SWINDLE — ARM / RISC-V Debug Probe

Turn any cheap dev board into a full-featured debug probe.

TL;DR — Got an RP2040 board lying around? You've got a debug probe.
Swindle is a multi-platform debug probe for embedded devices, supporting SWD (ARM Cortex-M) and RVSWD (RISC-V CH32V2xx/CH32V3xx). It's powered by the incredible Black Magic Probe engine with a custom Rust-based GDB interface.

✨ Features

CategoryDetails
🧠 EngineBuilt on top of the proven Black Magic Probe firmware engine
🦀 GDB InterfaceWritten in Rust — modern, safe, and maintainable
🔌 ProtocolsSWD (ARM) + RVSWD (RISC-V) — no JTAG
🎯 BreakpointsInfinite breakpoints in RAM (ARM/RV32) + soft flash breakpoints for targets without HW breakpoints (some WCH chips)
📡 RTOS SupportFreeRTOS awareness and SEGGER RTT out of the box — no configuration needed
💾 DFU UpdateFirmware updates over USB DFU — no programmer required
📺 RTT ChannelDedicated USB Tx only RTT channel (RP2xxx & CH32V3xx)
🌐 NetworkingExperimental networked version based on CH32V307 or RP2040+W5500 (DHCP + port 2000/20001)
🔋 Low CostRP2040-Zero boards are dirt cheap!
🔧 Voltage TranslationOptional custom PCB with voltage level translators

🧩 Supported Hardware

Probe Hosts (runs Swindle)

You need ≥256 KB flash and ≥48 KB RAM.

PlatformStatusNotes
RP2040 (e.g. RP2040-Zero)✅ StableThe most affordable option
RP2350 (e.g. RP2350-Zero)🧪 Experimental
GD32F303CCT6 (48/64-pin)✅ Stable
CH32V30xxx✅ StableRISC-V based host
Custom PCB🧩 OptionalWith voltage translators, mosfet on reset, ws2812

Debug Targets

ArchitectureProtocolDevice Families
ARM Cortex-MSWDRP2040, RP2350, STM32, GD32, and many ARM Cortex-M with SWD
RISC-VRVSWDWCH CH32V2xx, CH32V3xx

🚀 Getting Started

1. Flash the firmware

Pick the pre-built firmware for your board or build from source.

Flashing via DFU (RP2040): Hold BOOTSEL, plug in USB, then copy the .uf2 file.

2. Connect to your target

text
Probe SWDIO  →  Target SWDIO
Probe SWCLK  →  Target SWCLK
Probe GND    →  Target GND
Probe NRST   →  Target NRST   (optional, recommended)
Probe TX     →  Target Uart TX    (optional)

'see wiki for exact pinout'

3. Start debugging

bash
# Connect with GDB
gdb-multiarch -ex "target extended-remote /dev/ttyACM0" -ex "mon swdp_scan" -ex "attach 1" your_firmware.elf

Or use any GDB frontend (VS Code, CLion, etc.) — just point it to the serial port.


🔨 Building

This project uses CMake with presets for each target platform.

There is a devpod/docker build environment included.

Prerequisites

  • CMake ≥ 3.21
  • ARM GCC toolchain (arm-none-eabi-gcc) or LLVM/Clang
  • RISC-V toolchain (for CH32V targets)
  • Rust toolchain (for the GDB interface)

Configure & Build

bash
# Configure for your target
cmake --preset rp2040          # RP2040-Zero
cmake --preset rp2350          # RP2350-Zero
cmake --preset gd32f303_48     # GD32F303 48-pin
cmake --preset gd32f303_64     # GD32F303 64-pin
cmake --preset ch32v307        # CH32V307 (networked)

# Build
cmake --build --preset rp2040

Note: Some presets have variants with inverted NRST (*_inv), with WS2812 RGB led. See CMakePresets.json for the full list.

PresetDescription
rp2040RP2040-Zero (USB)
rp2040_invRP2040-Zero with inverted NRST
rp2350RP2350-Zero (USB, experimental)
gd32f303_48GD32F303 48-pin (USB)
gd32f303_64GD32F303 64-pin (USB)
gd32f303_48_inv_ws2812GD32F303 48-pin (USB) +WS2812 +inv RST
gd32f303_64_inv_ws2812GD32F303 64-pin (USB) +WS2812 +inv RST
ch32v307CH32V30x (USB)
ch32v307_inv_ws2812CH32V30x (USB) +ws2812 + inv RST
ch32v307_netCH32V307 (Ethernet, experimental)
rp2040_zero_w5500rp2040+w5500 (Ethernet, experimental)

📘 Documentation

Full documentation is available on the Swindle Wiki — covering:

  • 🔧 Hardware setup and wiring guides
  • 🖥️ GDB integration and troubleshooting
  • ⚙️ Advanced configuration
  • 🧪 RTOS-aware debugging
  • 🌐 Networked probe setup

🏗️ Project Architecture

text
swindle/                    # Debug probe wrapper
├── rs/                     # Rust GDB interface (rs_swindle / rsbmp)
│   ├── rs_swindle/         # Core GDB logic
│   └── rs_swindle_wrapper/ # C → Rust bridge
└── swindle/                # C++ Black Magic Probe engine + wrapper

esprit/                     # C++ / Rust SDK framework (HAL + RTOS + MCU drivers)

assets/                     # Images and media
cmake/                      # Project-level CMake utilities

🖼️ Gallery

Small probe, big targetRP2040 + CH32V
RP2040-Zero debugging RP2040RP2040 debugging CH32V
:------------------------::--------------:


🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.


📄 License

This project is built on the Black Magic Probe engine, licensed under GPL-3.0.

Parts

42
QtyValueFootprintReferences
6100nResistor_SMD:R_0603_1608MetricC1, C5, C6, C7, C8, C9
310kResistor_SMD:R_0603_1608MetricR1, R2, R4
3PinSocket_1x03_P1.00mm_VerticalConnector_PinSocket_1.00mm:PinSocket_1x03_P1.00mm_VerticalPB567, x, x2
210pfResistor_SMD:R_0603_1608MetricC2, C3
2PinSocket_1x04_P1.00mm_VerticalConnector_PinSocket_1.00mm:PinSocket_1x04_P1.00mm_Vertical3/3/GND/GND, PA4567
2SW_DIP_x01Button_Switch_SMD:SW_SPST_CK_RS282G05A3BOT1, RST1
1100uCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC4
11kResistor_SMD:R_0603_1608MetricR5
1330Resistor_SMD:R_0603_1608MetricR3
1BMP Debug1Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ1
1BMP Debug2Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ2
1CH32V303RCT6Package_QFP:LQFP-64_10x10mm_P0.5mmU1
1CrystalCrystal:Crystal_HC49-U_VerticalY1
1Debug portConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ3
1G***kibuzzard-6534F8FDkibuzzard-6534F8FD
1G***kibuzzard-6534F6A3kibuzzard-6534F6A3
1G***kibuzzard-6534F652kibuzzard-6534F652
1G***kibuzzard-6534F68Ekibuzzard-6534F68E
1G***kibuzzard-6534F947kibuzzard-6534F947
1G***kibuzzard-6534F6BCkibuzzard-6534F6BC
1G***kibuzzard-6534F67Ckibuzzard-6534F67C
1G***kibuzzard-6534F8F1kibuzzard-6534F8F1
1G***kibuzzard-6534F5CBkibuzzard-6534F5CB
1G***kibuzzard-6534F8DCkibuzzard-6534F8DC
1G***kibuzzard-6534F635kibuzzard-6534F635
1G***kibuzzard-6534F90Ckibuzzard-6534F90C
1LEDDiode_SMD:D_0805_2012MetricD1
1LM1117-3.3Package_TO_SOT_SMD:SOT-223U2
1SWDFUButton_Switch_SMD:SW_SPST_CK_RS282G05A3DFU1
1USB_OTGConnector_USB:USB_Micro-B_Wuerth_629105150521J4

More from mean00/swindle

12
  • 2 layers49.8 × 33.3 mmSwindle ch32 revJ, the printed circuit board in 3D

    Swindle ch32 revJ

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    65 parts22
  • 2 layers49.2 × 31.7 mmGd32f303 revG, the printed circuit board in 3D

    Gd32f303 revG

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    61 parts22
  • 2 layers38.3 × 34 mmSwindle ch32 revJ mini, the printed circuit board in 3D

    Swindle ch32 revJ mini

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    57 parts22
  • 2 layers39.3 × 30.1 mmGd32f303 revG mini, the printed circuit board in 3D

    Gd32f303 revG mini

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    56 parts22
  • 2 layers39.6 × 35.3 mmSwindle ch32 revJshort, the printed circuit board in 3D

    Swindle ch32 revJshort

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    54 parts22
  • 2 layers51 × 33.3 mmLnBMP ch32 revF 5pins, the printed circuit board in 3D

    LnBMP ch32 revF 5pins

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    53 parts22
  • 2 layers37.3 × 63.9 mmZero r2 mini w5500, the printed circuit board in 3D

    Zero r2 mini w5500

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    53 parts22
  • 2 layers51 × 33.3 mmLnBMP ch32revE, the printed circuit board in 3D

    LnBMP ch32revE

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    52 parts22
  • 2 layers52.6 × 33 mmLnBMP stm32, the printed circuit board in 3D

    LnBMP stm32

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    50 parts22
  • 2 layers52.6 × 33 mmLnBMP stm32, the printed circuit board in 3D

    LnBMP stm32

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    33 parts22
  • 2 layers41.8 × 30.2 mmZero r1, the printed circuit board in 3D

    Zero r1

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    31 parts22
  • 2 layers41.8 × 30.2 mmZero r2, the printed circuit board in 3D

    Zero r2

    mean00/swindle

    A custom version of the blackMagic probe with rust in it

    29 parts22

Similar boards

  • 2 layers33.7 × 97.8 mmHAN ESP TSS721, the printed circuit board in 3D

    HAN ESP TSS721

    UtilitechAS/amsreader-firmware

    ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

    29 parts470
  • 2 layers52.5 × 36.6 mmESP8266-WebRadio, the printed circuit board in 3D

    ESP8266-WebRadio

    karawin/Ka-Radio

    A wifi webradio with only low cost boards ESP8266 and VS1053 by Jp Cocatrix

    52 parts453
  • 2 layers95.2 × 57.2 mmDomesdayDuplicator, the printed circuit board in 3D

    DomesdayDuplicator

    Domesday86/DomesdayDuplicator

    High-speed LaserDisc RF sampler

    66 parts325GPL-3.0
  • 2 layers189.5 × 204.9 mmSmartSpin2k Panelized, the printed circuit board in 3D

    SmartSpin2k Panelized

    doudar/SmartSpin2k

    Transform your spin bike into a Smart Trainer!

    749 parts292GPL-2.0
  • 4 layers121.9 × 109.2 mmPlinkyblack hwmidi jacks, the printed circuit board in 3D

    Plinkyblack hwmidi jacks

    plinkysynth/plinky_public

    a public release of the plinky sw and hw

    300 parts227
  • 4 layers113.5 × 105.5 mmMultistepper, the printed circuit board in 3D

    Multistepper

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    243 parts208
  • 2 layers275 × 103 mmKeebee, the printed circuit board in 3D

    Keebee

    blakesmith/embedded

    Blake's embedded projects

    159 parts167
  • 2 layers43 × 34.3 mmEspway, the printed circuit board in 3D

    Espway

    espway/espway

    Segway-like robot implemented on ESP8266

    37 parts122LGPL-3.0

Questions

How big is the LnBMP ch32revC PCB?

It measures 51 × 33.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the LnBMP ch32revC use?

42 parts, built around the CH32V303RCT6 and LM1117-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the LnBMP ch32revC KiCad files?

From the mean00/swindle repository on GitHub, at the commit this page was made from: the board is kicad/ch32v3x/lnBMP_ch32d/lnBMP_ch32revD/lnBMP_ch32revC.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the LnBMP ch32revC design in my own project?

Its repository states no licence, so its author keeps all rights: ask mean00 before reusing the design.