Skip to the content
2 layers25.1 × 18 mmStlink clone adapter, the printed circuit board in 3D

Stlink clone adapter

noahp/stlink-clone-adapter2

2x5 0.1" header to arm cortex 10-pin header adapter

Size
25.1 × 18 mm
Copper layers
2
Thickness
1.6 mm
Parts
9
Nets
16
Pads
37
Tracks, vias
76, 3
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
11 Nov 2015
Updated
3 Jan 2021

Overview

Stlink clone adapter is an open-source printed circuit board by noahp, from the noahp/stlink-clone-adapter repository on GitHub. It is a 2-layer board of 25.1 × 18 mm with 9 parts on 16 nets, routed with 76 tracks and 3 vias.

Its parts include 5 connectors, 1 resistor and 1 diode. It belongs with the interfaces and adapters boards of this library.

README

README.md

GitHub Workflow
Status

stlink-clone-adapter

Adapter board for a 2x5 0.1" (2.54mm) header to arm cortex 10-pin connector.

This is useful when connecting ST-Link v2 clones to a standard ARM 2x5 1.27mm pitch header.

Variants

I know of 2 variants of the ST-Link v2 clones, with different pinouts on the 2x5 0.1" (2.54mm) header. Different adapter boards provided for each variant.

One way to distinguish the variants; when unplugged, check for continuity on pins 3+4 or 5+6.

  • pins 3+4 shorted, variant-1
  • pins 5+6 shorted, variant-2

Variant 1

Older model I bought in ~2016.

From the pin 1 marker on the header on the ST-Link, pinout is as follows:

FuntionPinPinFunction
RST*12SWDIO
GND*34GND
SWIM56SWCLK
3.3V783.3V
5.0V9105.0V

*Note that the labeling is incorrect for some pins on the etching on the case / on the silkscreen on the board. My device had the pinout for Variant-2 on the etching and just incorrect on the silkscreen markings 🤷.

Variant 2

Newer model I bought in 2020.

From the pin 1 marker on the header on the ST-Link, pinout is as follows:

FuntionPinPinFunction
RST12SWCLK
SWIW34SWDIO
GND56GND
3.3V783.3V
5.0V9105.0V

Labeling appears to be correct on these devices.

Variant X

UNTESTED DESIGN

Support both pinouts with a 3x4 0.1" header to select between them.

Alternative approaches:

  • digital selection (mux the 4 connectors), controlled somehow by the signals. this has the defect of additional propogation losses through the mux, and complexity in the control circuit
  • provide 2 2x5 0.1" headers on the board (would be a funky looking board!). the connectors are somewhat expensive at $0.80 @ qty 1 but makes for a simpler design
  • provide a single 6-pin strip (3.3v, GND, RST, SWDIO, SWCLK, SWO) and use 0.1" jumper connectors to wire it to the probe (kinda janky connection vs. single connector though).

top bottom

PCB Renders

Variant-1

top bottom

3d-top 3d-bottom

Variant-2

top bottom

3d

Part list

pyocd

Quick note about using the stlink v2 clones with pyocd; I had the best luck using the device after updating the firmware using the official ST updater:

bash
❯ java -jar stsw-link007/AllPlatforms/STLinkUpgrade.jar -jtag_swim -force_prog
Firmware version detected: V2J29S7
................Upgrade is successful.
Version read: 2.37.7

After upating the version should report V2J37S7 if you run the updater again.

There's a ton of information out there on the stlink devices themselves (I found this helpful).

On ubuntu there's an available package stlink-tools (source) which contains some utilities and udev rules for the st-link devices. I didn't end up using the tools themselves but it could come in handy.

Parts

9
QtyValueFootprintReferences
3Conn_01x04project-lib:PinHeader_1x04_P2.54mm_VerticalJ1, J2, J4
11KResistor_SMD:R_0603_1608MetricR1
1Conn_02x05_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x05_P2.54mm_HorizontalJ3
1Conn_ARM_JTAG_SWD_10kicadlib:ARM_10_PINJ5
1LEDLED_SMD:LED_0603_1608MetricD1

The 7 most common of 9 parts.

More from noahp/stlink-clone-adapter

2
  • 2 layers15 × 14.2 mmStlink clone adapter, the printed circuit board in 3D

    Stlink clone adapter

    noahp/stlink-clone-adapter

    2x5 0.1" header to arm cortex 10-pin header adapter

    2 parts2
  • 2 layers15 × 14.2 mmStlink clone adapter, the printed circuit board in 3D

    Stlink clone adapter

    noahp/stlink-clone-adapter

    2x5 0.1" header to arm cortex 10-pin header adapter

    2 parts2

Similar boards

  • 2 layers103 × 30.5 mmTS Back Endcap, the printed circuit board in 3D

    TS Back Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    9 parts1.3kMIT
  • 2 layers31.8 × 47.6 mmNGC 38 connector, the printed circuit board in 3D

    NGC 38 connector

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    9 parts1.2k
  • 2 layers24 × 27.3 mmExpansion Card Retrofit, the printed circuit board in 3D

    Expansion Card Retrofit

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    9 parts1.1kCC-BY-4.0
  • 2 layers15.6 × 17.3 mmSKR Mini TFT Thermistor Board, the printed circuit board in 3D

    SKR Mini TFT Thermistor Board

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    9 parts1.1kGPL-3.0
  • 2 layers39.1 × 49.5 mmLearnoliver, the printed circuit board in 3D

    Learnoliver

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    9 parts915
  • 2 layers17.4 × 16.9 mmToolhead, the printed circuit board in 3D

    Toolhead

    tanaes/whopping_Voron_mods

    9 parts787GPL-3.0
  • 2 layers9.8 × 108 mmExpander, the printed circuit board in 3D

    Expander

    wntrblm/Castor_and_Pollux

    A Juno-inspired dual oscillator

    9 parts587
  • 2 layersKeyboard after, the printed circuit board in 3D

    Keyboard after

    adamws/kicad-kbplacer

    KiCad plugin for automatic keyboard's key placement and routing

    9 parts547GPL-3.0

Questions

How big is the Stlink clone adapter PCB?

It measures 25.1 × 18 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Stlink clone adapter use?

9 parts. 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 Stlink clone adapter KiCad files?

From the noahp/stlink-clone-adapter repository on GitHub, at the commit this page was made from: the board is variant-x/stlink-clone-adapter.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Stlink clone adapter design in my own project?

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