Skip to the content
6 layers30.5 × 18 mmUSB SWD, the printed circuit board in 3D

A USB to JTAG and SWD adapter for use with OpenOCD

Size
30.5 × 18 mm
Copper layers
6
Thickness
1.6 mm
Parts
46
Nets
66
Pads
192
Tracks, vias
174, 65
Pours
4
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
16 Oct 2018
Updated
24 Oct 2024

Overview

USB SWD is an open-source printed circuit board by HarmonInstruments, from the HarmonInstruments/JTAG_SWD repository on GitHub, published under the GPL-3.0 licence. It is a 6-layer board of 30.5 × 18 mm with 46 parts on 66 nets, routed with 174 tracks and 65 vias.

It is built around the RP2040, 2N7001TDCK and TPS71733DCKR-TP, with the SM04B-SRSS-TB and X322512MSB4SI among its other parts. Its parts include 16 resistors, 11 capacitors, 7 ICs, 4 diodes and 3 connectors. It belongs with the interfaces and adapters boards and the RP2040 boards of this library.

Main components

5

README

README.md

JTAG_SWD

photo of PCB

JTAG

Hirose DF3A-6P-2DS header

Adapter Cables

Hirose DF3-6EP-2C 6 pin inline header

TC2030-MCP TC2030-MCP-NL

Pinout

PinJTAGSerial WireAVR
1VCCVCCVCC
2TCKSWCLKSCK
3GNDGNDGND
4TDOSWDIOMISO
5NCjumper to 6NC
6NCjumper to 5NC
7TDISWDIOMOSI
8TMSNCRST

OpenOCD config for ECP5-12

text
interface ftdi
ftdi_channel 0
ftdi_vid_pid 0x0403 0x6014
ftdi_layout_init 0x0058 0x00fb
ftdi_layout_signal nTRST -data 0x0010
ftdi_layout_signal nSRST -oe 0x0020
adapter_khz 10000

telnet_port 4444
gdb_port 3333
transport select jtag
reset_config none

jtag newtap lfe5 tap -expected-id 0x21111043 -irlen 8 -irmask 0xFF -ircapture 0x5
init
scan_chain
svf -tap lfe5.tap -quiet -progress build/display_fpga.svf
shutdown

OpenOCD config for XC7A15T

text
interface ftdi
ftdi_channel 0
ftdi_vid_pid 0x0403 0x6014
ftdi_layout_init 0x0058 0x00fb
ftdi_layout_signal nTRST -data 0x0010
ftdi_layout_signal nSRST -oe 0x0020
telnet_port 4444
gdb_port 3333
transport select jtag
reset_config none
jtag newtap artix7 tap -irlen 6 -ignore-version -expected-id 0x0362E093
pld device virtex2 artix7.tap
adapter_khz 10000
adapter_nsrst_delay 200
init
pld load 0 top.bit
virtex2 read_stat 0
shutdown

OpenOCD for SWD STM32F4

swd.cfg

text
source [find openocd.cfg]
flash info 0
flash write_image erase digital.elf
reset run
exit

openocd.cfg

text
interface ftdi
transport select swd
ftdi_channel 0
ftdi_vid_pid 0x0403 0x6014
ftdi_layout_init 0x0058 0x00fb
ftdi_layout_signal SWD_EN -data 0x0200
adapter_khz 1000
telnet_port 4444
gdb_port 3333
reset_config none
source [find target/stm32f4x.cfg]
init
reset halt
sleep 100

AVRDude

text
avrdude -c c232hm -P USB -p m32u4 -v -b 500000

Higher baud rates failed.

Parts

46
QtyValueFootprintReferences
81 uFkicad_pcb:C_0402_1005MetricC1, C2, C3, C5, C7, C9, C10, C11
75.1 kkicad_pcb:R_0402_1005MetricR1, R2, R4, R13, R14, R15, R16
527kicad_pcb:R_0402_1005MetricR5, R6, R7, R8, R10
4QF838kicad_pcb:LED_0603_1608MetricD1, D2, D3, D4
3100 kkicad_pcb:R_0402_1005MetricR9, R11, R12
32N7001TDCKkicad_pcb:SOT-353_SC-70-5U4, U7, U11
227 pFkicad_pcb:C_0402_1005MetricC6, C8
2SM04B-SRSS-TBConnector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_HorizontalJ2, J3
2TestPointTestPoint:TestPoint_THTPad_1.5x1.5mm_Drill0.7mmTP1, TP2
2tooling_holekicad_pcb:tooling_hole_2.55TH1, TH2
11 kkicad_pcb:R_0402_1005MetricR3
14.7 uFkicad_pcb:C_0603_1608MetricC4
16MMF7kicad_pcb:SOT-363_SC-70-6U6
1CGH8Bkicad_pcb:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1RP2040kicad_pcb:QFN-56-RP2040U3
1TPS71733DCKRkicad_pcb:SOT-353_SC-70-5U2
1W25Q16RVXHJQkicad_pcb:XSON-8-1EP_3x2mm_P0.5mm_EP0.2x1.6mmU1
1X322512MSB4SIOscillator:Oscillator_SMD_SeikoEpson_SG8002CE-4Pin_3.2x2.5mmY1

More from HarmonInstruments/JTAG_SWD

1
  • 4 layers33.5 × 15 mmUSB JTAG, the printed circuit board in 3D

    USB JTAG

    HarmonInstruments/JTAG_SWD

    A USB to JTAG and SWD adapter for use with OpenOCD

    29 parts5GPL-3.0

Similar boards

  • 4 layers39.5 × 80 mmTrion-8-test, the printed circuit board in 3D

    Trion-8-test

    till-s/trion-lqfp144-test

    base-design for efinix trion in lqfp144 package

    187 parts1
  • 4 layers216.5 × 140 mmNumlocked shift, the printed circuit board in 3D

    Numlocked shift

    YuhKuro/Numlocked

    Fully Custom Modular Keyboard

    137 parts1MIT
  • 4 layersProtopico, the printed circuit board in 3D

    Protopico

    MyloWhylo/ProtogenPCBs

    Repository for ProtoPico and BackpackController

    81 partsMIT
  • 4 layers50.8 × 22.9 mmEos feather rp2040, the printed circuit board in 3D

    Eos feather rp2040

    embeddedos-org/eCAD-Hardware-Products

    Hardware designs + EE docs + Board datasheets of Multiple products

    56 parts8MIT
  • 4 layers149.6 × 98 mmMch2022, the printed circuit board in 3D

    Mch2022

    kitspace-test-repos/kicad6-file-collection

    235 partsMIT
  • 2 layers47 × 84.9 mmReceiver v0.1.0, the printed circuit board in 3D

    Receiver v0.1.0

    picolume/hardware

    Hardware designs for the PicoLume wireless LED prop system. All designs are created in KiCad.

    69 partsMIT
  • 4 layers25 × 20 mmRP2040-Decoder, the printed circuit board in 3D

    RP2040-Decoder

    gab-k/RP2040-Decoder

    Cost effective DIY DCC Decoder for model railroad locomotives

    68 parts131
  • 2 layers120 × 60 mmOverglade Badges, the printed circuit board in 3D

    Overglade Badges

    KaiPereira/Overglade-Badges

    NFC hackathon badges for the Overglade game jam in Singapore!

    69 parts126

Questions

How big is the USB SWD PCB?

It measures 30.5 × 18 mm and has 6 copper layers, 1.6 mm thick.

What parts does the USB SWD use?

46 parts, built around the RP2040, 2N7001TDCK, TPS71733DCKR-TP and SM04B-SRSS-TB. 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 USB SWD KiCad files?

From the HarmonInstruments/JTAG_SWD repository on GitHub, at the commit this page was made from: the board is swd/USB_SWD.kicad_pcb and its schematic swd/USB_SWD.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the USB SWD design in my own project?

Its repository publishes it under the GPL-3.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).