Skip to the content
2 layers15 × 14.2 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
15 × 14.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
2
Nets
10
Pads
20
Tracks, vias
28, 0
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 15 × 14.2 mm with 2 parts on 10 nets, routed with 28 tracks and 0 vias.

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

2
QtyValueFootprintReferences
12X5_HDRkicadlib:ARM_10_PIN_0.1_TH_RIGHTANGLEJ1
1ARM_10PINkicadlib:ARM_10_PINJ2

More from noahp/stlink-clone-adapter

2
  • 2 layers25.1 × 18 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

    9 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 layers37 × 19 mmPassive rpi hub75-adapter, the printed circuit board in 3D

    Passive rpi hub75-adapter

    hzeller/rpi-rgb-led-matrix

    Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO

    2 parts4.4kGPL-2.0
  • 2 layersDiode template, the printed circuit board in 3D

    Diode template

    adamws/kicad-kbplacer

    KiCad plugin for automatic keyboard's key placement and routing

    2 parts547GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 button, the printed circuit board in 3D

    L0 button

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    2 parts546MIT
  • 2 layers35.1 × 46.8 mmSDEX2M2 Breakout Board, the printed circuit board in 3D

    SDEX2M2 Breakout Board

    NVNTLabs/switch2-SDEX2M2

    Micro SD Express to M.2 NVME Adapter for Nintendo Switch 2

    2 parts542GPL-3.0
  • 2 layers59.3 × 36.6 mmExpansionBoardTemplate, the printed circuit board in 3D

    ExpansionBoardTemplate

    BlueSCSI/BlueSCSI-v2

    BlueSCSI v2/Ultra - an open source, open hardware, SCSI emulator using the Pi Pico PR2040 and Pico 2 RP2350

    2 parts459GPL-3.0
  • 2 layersAlpha.9mm.wire, the printed circuit board in 3D

    Alpha.9mm.wire

    ohmtech-rdi/eurorack-blocks

    Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust

    2 parts410
  • 2 layers26.7 × 64 mmGpu power, the printed circuit board in 3D

    Gpu power

    dennisss/dacha

    Monorepo for awesome tools/projects/libraries

    2 parts397Apache-2.0

Questions

How big is the Stlink clone adapter PCB?

It measures 15 × 14.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Stlink clone adapter use?

2 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-1/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.