Skip to the content
4 layers27 × 13 mmSwd2usbc basic, the printed circuit board in 3D

Swd2usbc basic

alvarop/swd2usbc29

Have you ever wanted to debug your device over USB-C? Sometimes there's not enough room for a JTAG/SWD connector, or even Tag-Connect pads!

Size
27 × 13 mm
Copper layers
4
Thickness
0.82 mm
Parts
6
Nets
30
Pads
70
Tracks, vias
132, 35
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
5 Jan 2025
Updated
16 Mar 2025

Overview

Swd2usbc basic is an open-source printed circuit board by alvarop, from the alvarop/swd2usbc repository on GitHub, published under the CC0-1.0 licence. It is a 4-layer board of 27 × 13 mm with 6 parts on 30 nets, routed with 132 tracks and 35 vias.

It is built around the FTSH-105-01-F-DV-K-P-TR and SML-D12M8WT86. Its parts include 3 connectors, 1 resistor and 1 diode.

Main components

2

README

README.md

SWD2USBC Project

Have you ever wanted to debug your device over USB-C? Sometimes there's not enough room for a JTAG/SWD connector, or even Tag-Connect pads!

For history and all of the details, check out my detailed write up here.

SWD2USBC

SWD2USBC

Full featured adapter with Debug Accessory Mode support. Includes an ATTiny microcontroller to set the correct pull-up resistors on CC1/CC2 to provide accurate charge current to the target. Has a USB-C plug so no extra USB-C cable required

SWD2USBC Firmware

The ATTiny firmware doesn't do much. It reads the voltage on the CC1/CC2 line that is pulled up and determines the available charge current. It then pulls up CC1 and CC2 to provide the charge current to the device under Debug Accessory Mode.

SWD2USBC Basic

SWD2USBC Basic Simple adapter with no Debug Accessory Mode. Assumes target SWD lines wired up directly to TX1/2 as listed above. Requires USB3/Thunderbolt C to C cable to connect to target.

Sample Target

Sample Target

Example target device. Fully featured with CC1/2 comparators to connect/disconnect SWD lines if Debug Accessory Mode is active. Target is an RP2040 instead of STM32 since it's easier to source.

Sample Target Firmware

The sample target firmware does basic USB charge detection using the CC lines. When the Debug Accessory Mode is enabled, both CC1/CC2 are used, otherwise, the single CC line is used. There's an LED (D3) which lights up when Debug Accessory Mode is enabled.

The charge current is printed out over UART, but it is also displayed using the two LEDs. The blink patterns are:

  • 500mA - LED1 (D1) blinks
  • 1500mA - LED2 (D2) blinks
  • 3000mA - Both LED1 (D1) and LED2 (D2) blink at the same time
  • Other/Error - Both LED1 (D1) and LED2 (D2) alternating blink

Sample Target Basic

Sample Target Basic

Basic example target. Similar to the sample target above, but does not include any comparators/switches. SWD lines are directly connected to the USB-C connector.

SWD2USBC Programmer

Simple adapter PCB to connect the AVRISP V2 connector to USB-C to program the ATTiny in the SWD2USBC device.

SWD2USBC Programmer

Parts

6
QtyValueFootprintReferences
2USB_C_Receptaclealvarop:MOLEX-1054500101J1, J3
11kResistor_SMD:R_0402_1005MetricR1
1Conn_ARM_JTAG_SWD_10snapeda:SAMTEC_FTSH-105-01-F-DV-P-TRJ2
1GREENLED_SMD:LED_0603_1608MetricD1

The 5 most common of 6 parts.

More from alvarop/swd2usbc

4
  • 4 layers51.8 × 20 mmSample target, the printed circuit board in 3D

    Sample target

    alvarop/swd2usbc

    Have you ever wanted to debug your device over USB-C? Sometimes there's not enough room for a JTAG/SWD connector, or even Tag-Connect pads!

    57 parts29CC0-1.0
  • 2 layers43 × 20 mmSample target basic, the printed circuit board in 3D

    Sample target basic

    alvarop/swd2usbc

    Have you ever wanted to debug your device over USB-C? Sometimes there's not enough room for a JTAG/SWD connector, or even Tag-Connect pads!

    46 parts29CC0-1.0
  • 4 layers25.8 × 16 mmSwd2usbc, the printed circuit board in 3D

    Swd2usbc

    alvarop/swd2usbc

    Have you ever wanted to debug your device over USB-C? Sometimes there's not enough room for a JTAG/SWD connector, or even Tag-Connect pads!

    17 parts29CC0-1.0
  • 2 layers20.5 × 11 mmSwd2usbc programmer, the printed circuit board in 3D

    Swd2usbc programmer

    alvarop/swd2usbc

    Have you ever wanted to debug your device over USB-C? Sometimes there's not enough room for a JTAG/SWD connector, or even Tag-Connect pads!

    4 parts29CC0-1.0

Similar boards

  • 4 layers64 × 74 mmKingfisher, the printed circuit board in 3D

    Kingfisher

    emoninet2/Kingfisher-DAC16

    A 16 channel. 16-bit DAC board.

    78 parts
  • 2 layers45 × 45 mmOBC644-10D, the printed circuit board in 3D

    OBC644-10D

    kentN/OBC644-10D

    arduino compatible on-board computer

    82 parts1MIT
  • 4 layers80 × 80 mmQsbc zero, the printed circuit board in 3D

    Qsbc zero

    qfreiman/qsbc-zero

    Single Board Computer based on the i.MX6ULL

    243 parts1GPL-3.0
  • 4 layers90 × 55 mmGshps, the printed circuit board in 3D

    Gshps

    CoolNamesAllTaken/geeps-hardware

    Pronounced Gee-Pee-Ess (hardware).

    111 parts
  • 4 layers35 × 22 mm3-3V Regulator, the printed circuit board in 3D

    3-3V Regulator

    johnktaylor/protoworks-kicad-3-3v-regulator

    A 3.3v Regulator and USB-C breakout board licensed under CERN-OHL-W-2.0

    24 partsCERN-OHL-W-2.0
  • 2 layers74 × 72 mmIso usb2pwrd panel, the printed circuit board in 3D

    Iso usb2pwrd panel

    qfreiman/iso-usb2pwrd

    compact USB-C 2.0 Isolator with 1W Power Passthrough

    204 parts
  • 4 layers25 × 16 mmSwd over c, the printed circuit board in 3D

    Swd over c

    kitspace-test-repos/kicad6-file-collection

    17 partsMIT

Questions

How big is the Swd2usbc basic PCB?

It measures 27 × 13 mm and has 4 copper layers, 0.82 mm thick.

What parts does the Swd2usbc basic use?

6 parts, built around the FTSH-105-01-F-DV-K-P-TR and SML-D12M8WT86. 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 Swd2usbc basic KiCad files?

From the alvarop/swd2usbc repository on GitHub, at the commit this page was made from: the board is swd2usbc-basic/swd2usbc-basic.kicad_pcb and its schematic sample-target-basic/sample-target-basic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Swd2usbc basic design in my own project?

Its repository publishes it under the CC0-1.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).