Skip to the content
PCBKitNew board
2 layers39.7 × 14 mmSample target, the printed circuit board in 3D

Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

Size
39.7 × 14 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
62
Pads
185
Tracks, vias
362, 53
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
16 Jan 2022
Updated
11 Oct 2026

Overview

Sample target is an open-source printed circuit board by alvarop, from the alvarop/debugotron repository on GitHub, published under the BSD-3-Clause licence. It is a 2-layer board of 39.7 × 14 mm with 31 parts on 62 nets, routed with 362 tracks and 53 vias.

It is built around the STM32L412C8T6 and MIC5504-3.3YM5. Its parts include 11 resistors, 9 capacitors, 5 ICs, 2 diodes and 2 switches. It belongs with the STM32 boards of this library.

Main components

2

README

README.md

Debugotron!

Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

SWD to USB-C!

SWD to USB-C Side 1 SWD to USB-C Side 2

Have you ever wanted to debug your device over USB-C? Sometimes there's not enough room for a JTAG/SWD connector, or even TAGConnect pads! The USB-C specification has a Debug Accessory Mode feature that allows for this. I have a Twitter thread with additional details. Here's an unrolled version for easier reading.

SWD to USB-C Programmer

Since the current adapter uses an ATTiny24a, I made a different programmer adapter for it

SWD to USB-C Programmer

Example Target

This is a simple STM32L4 board that implements USB-C DAM (the "proper way") as an example.

SWD to USB-C Example Target

SWD to USB-C Example Target in Use

SWD Switch

Tool that allows connecting/disconnecting the SWD/JTAG lines (Via ARM 10-pin connector) with a pushbutton (or external signal). This can be useful when trying to measure ultra low power consumption on a device while the debugger is connected (but not necessarily running/attached).

SWD Switch Side 1 SWD Switch Side 2

USB-C Switch

This one is more of an automation tool. I've always wanted to automate firmware testing. Sometimes, having USB connected is necessary to program/communicate with a device, but at the same time, having USB connected changes the power characteristics of the test (or just operating mode).

For example, you might want to automatically test the power consumption of a battery powered device every night with the latest firmware. In order to run the test, you might have to connect to the device, flash it, then disconnect USB. The USB-C switch will allow software-controlled power and data connect/disconnects to a USB-C device. Depending on the configuration, it will also allow full 20V@5A pass-through by allowing USB-PD communication over the CC lines.

In the cases where you want to communicate with a device over USB while still powering it via 20V (or anything higher than 5V), a USB switch allows for a different USB cable to be used for data only, while power is taken from a separate USB-C port.

USB-C Switch (Bare PCB)

Parts

31
QtyValueFootprintReferences
60.1uFCapacitor_SMD:C_0402_1005MetricC3, C4, C5, C6, C7, C8
55.1kResistor_SMD:R_0402_1005MetricR1, R2, R7, R8, R9
40Resistor_SMD:R_0402_1005MetricR3, R4, R5, R6
21uFCapacitor_SMD:C_0402_1005MetricC1, C2
2BTNultralibrarian:PTS820J25MSMTRLFSSW1, SW2
2LEDLED_SMD:LED_0603_1608MetricD1, D2
110kResistor_SMD:R_0402_1005MetricR11
1240kResistor_SMD:R_0402_1005MetricR10
14.7uFCapacitor_SMD:C_0402_1005MetricC9
1LM358_DFNPackage_DFN_QFN:DFN-8-1EP_2x2mm_P0.5mm_EP1.05x1.75mmU5
1MIC5504-3.3YM5Package_TO_SOT_SMD:SOT-23-5U2
1SN74AHC1G08DBVRG4snapeda:SOT95P280X145-5NU1
1STM32L412C8T6ultralibrarian:STM32L412C8T6U4
1TMUX1511PWRsnapeda:SOP65P640X120-14NU3
1USB_C_Receptaclesnapeda:GCT_USB4056-03-A_REVA_MODJ1

The 30 most common of 31 parts.

Questions

How big is the Sample target PCB?

It measures 39.7 × 14 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Sample target use?

31 parts, built around the STM32L412C8T6 and MIC5504-3.3YM5. 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 Sample target KiCad files?

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

Can I use the Sample target design in my own project?

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

More from alvarop/debugotron

3
  • 4 layers60 × 60 mmUsb switch, the printed circuit board in 3D

    Usb switch

    alvarop/debugotron

    Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

    77 parts52BSD-3-Clause
  • 4 layers30 × 20 mmSwd switch, the printed circuit board in 3D

    Swd switch

    alvarop/debugotron

    Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

    28 parts52BSD-3-Clause
  • 2 layers20.5 × 11 mmSwd over c pogo, the printed circuit board in 3D

    Swd over c pogo

    alvarop/debugotron

    Debugotron is a collection of debugging/automation tools I've wanted in the past but didn't have access to. Currently, the tools include:

    6 parts52BSD-3-Clause

Similar boards

  • 4 layers49.5 × 54.9 mmOSSI CM2, the printed circuit board in 3D

    OSSI CM2

    transistorgrab/OSSI

    Open Source Solar Inverter - Software, Hardware, Mechanics

    80 parts99MIT
  • 2 layers172 × 152.9 mmTrackpad, the printed circuit board in 3D

    Trackpad

    george-norton/peacock

    A big QMK powered trackpad

    102 parts309CERN-OHL-S-2.0
  • 2 layers22.9 × 36.7 mmUsb2usb, the printed circuit board in 3D

    Usb2usb

    tmk/USB2USB_Converter

    USB to USB keyboard protocol converter supported by TMK keyboard firmware

    26 parts152
  • 2 layers78 × 130 mmLofence, the printed circuit board in 3D

    Lofence

    kiu/lofence

    LoFence is a LoRaWAN capable IoT electric fence monitoring system running on the The Things Network.

    65 parts142MIT
  • 2 layers96.5 × 55 mmVera module rev2, the printed circuit board in 3D

    Vera module rev2

    fvdhoef/vera-module

    Versatile Embedded Retro Adapter

    120 parts138MIT
  • 2 layers120 × 130 mmSingularitySurfer V1, the printed circuit board in 3D

    SingularitySurfer V1

    nkrackow/SingularitySurfer-FPGA-Lock-In-Amplifier

    Repository for the development of an FPGA based DSP Lock-In Amplifier

    174 parts80MIT
  • 4 layers60.2 × 20.8 mmPhaseLatchMini, the printed circuit board in 3D

    PhaseLatchMini

    AndersBNielsen/PhaseLatchMini

    High-rate continuous streaming of interleaved dual ADC (I/Q) samples over USB Full‑Speed (FS) using only the built‑in CDC class on an STM32F103C8 ("Blue Pill" style) board.

    63 parts72
  • 2 layers98 × 56 mmThermal pcb, the printed circuit board in 3D

    Thermal pcb

    Badbird5907/thermal-camera

    My design of a cheap and affordable thermal camera

    68 parts59MIT