Skip to content
Adapter for various SWD programmers for STM32. Eagle CAD v9 files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gerber
pdf
.gitignore
DESCRIPTION
LICENSE
README.md
eagle.epf
stm32 debug adapter.brd
stm32 debug adapter.sch

README.md

STM32 Debug Adapter Board

Adapter for various SWD programmers for STM32.


This repo contains:

  • Autodesk Eagle CAD v9 project
  • PDF schematic & board layout
  • Gerber files (in PCBWay-compatible format: RS-274X + Excellon)

What's here in README:


Supported STM32 programmers

  • Original ST-Link V2 by STMicroelectronics
  • Nucleo original ST-Link V2-1 by STMicroelectronics
  • Chinese ST-Link V2 clones (2 versions: ST-Link & MX-Link - different pinouts)
  • J-Link by SEGGER

Interfaces pinout

Original ST-Link V2 by STMicroelectronics

STM32 connector pinout:

Name Pin Pin Name
VDD_TRGT 1 2 VDD_TRGT
NC 3 4 GND
NC 5 6 GND
SWDIO 7 8 GND
SWCLK 9 10 GND
NC 11 12 GND
SWO 13 14 GND
NRST 15 16 GND
NC 17 18 GND
3.3V 19 20 GND

J-Link by SEGGER

Target connector pinout:

Name Pin Pin Name
3.3V 1 2 NC
NC 3 4 GND
NC 5 6 GND
SWDIO 7 8 GND
SWCLK 9 10 GND
NC 11 12 GND
SWO 13 14 GND
NRST 15 16 GND
NC 17 18 GND
5V 19 20 GND

Chinese ST-Link V2 dongle

SWD connector pinout:

Name Pin Pin Name
RST* 1 2 SWDIO
GND 3 4 GND
SWO* 5 6 SWCLK
3.3V 7 8 3.3V
5V** 9 10 5V**

* - not connected on the device, need to modify ST-Link: cut STM8's tracks for nRST & SWIM signals to become instead STM32's nRST (STM32 pin 18) & SWO (STM32 pin 31) signals

** - not connected on adapter board

Chinese MX-Link dongle

SWD connector pinout:

Name Pin Pin Name
RST* 1 2 SWCLK
SWO* 3 4 SWDIO
GND 5 6 GND
3.3V 7 8 3.3V
5V** 9 10 5V**

* - not connected on the device, need to modify MX-Link: cut STM8's tracks for nRST & SWIM signals to become instead STM32's nRST (STM32 pin 18) & SWO (STM32 pin 31) signals

** - not connected on adapter

Nucleo-32 original ST-Link V2-1 by STMicroelectronics

CN2 connector pinout:

Name Pin Pin Name
- - 5 NC
3.3V 4 3 SWCLK
GND 2 1 SWDIO

Nucleo-64 original ST-Link V2-1 by STMicroelectronics

CN4 connector pinout:

Pin Name
1 VDD_TRGT
2 SWCLK
3 GND
4 SWDIO
5 NRST
6 SWO

Nucleo-144 original ST-Link V2-1 by STMicroelectronics

CN6 connector pinout:

Pin Name
1 VDD_TRGT
2 SWCLK
3 GND
4 SWDIO
5 NRST
6 SWO

Blue Pill board (STM32F103C8T6)

Programming connector pinout:

Pin Name
1 GND
2 SWCLK
3 SWDIO
4 3.3V

Black Pill board (STM32F103C8T6)

Programming connector pinout:

Pin Name
1 GND
2 SWCLK
3 SWDIO
4 3.3V

Tag-Connect 6 Pin Cable (TC2030-IDC)


IDC-6 connector pinout:

Name Pin Pin Name
3.3V 1 2 SWDIO
NRST 3 4 SWCLK
GND 5 6 SWO

Rev. B board info (latest)

PDF schematic & board:

Solder jumper can be used with Original ST-Link to connect IDC-20 pin 19 VDD (3.3V) to rest of 3.3V (pins 1-2). Jumper should remain open for use with J-Link, it has 3.3V output on pin 1, while pin 19 has 5V, might damage your board!

Changes:

  • Changed SWD pin header to match Nucleo ST-Link V2-1 pinout
  • Fixed Blue Pill / Black Pill board (STM32F103C8T6) connector to be non-mirrored
  • Added a solder jumper (NO) between pin 19 and pins 1-2 for Original ST-Link V2 to provide 3.3V power
  • Added power indicator LED

Supported interfaces:

  • Chinese ST-Link V2 dongle
  • Chinese MX-Link dongle
  • J-Link / Original ST-Link V2
  • Tag-Connect (TC2030-IDC)
  • Nucleo original ST-Link V2-1
  • Blue Pill / Black Pill board

Known issues:

  • none

Rev. A board info

PDF schematic & board:

Changes:

  • Added Blue Pill / Black Pill board (STM32F103C8T6) connector

Supported interfaces:

  • Chinese ST-Link V2 dongle
  • Chinese MX-Link dongle
  • J-Link / Original ST-Link V2
  • Tag-Connect (TC2030-IDC)
  • SWD pin header
  • Blue Pill / Black Pill board

Known issues:

  • Blue Pill header mirrored, need to plug in board upside down (chip facing down)
  • Original ST-Link V2 does not provide 3.3V on pins 1-2 (it is VDD_Target input instead), need to connect pin 19 to pins 1-2 on IDC-20 connector with external wire. J-Link works okay, as pin 1 has 3.3V output.

Original board info

PDF schematic & board:

Supported interfaces:

  • Chinese ST-Link V2 dongle
  • Chinese MX-Link dongle
  • J-Link / Original ST-Link V2
  • Tag-Connect (TC2030-IDC)
  • SWD pin header

Known issues:

  • Original ST-Link V2 does not provide 3.3V on pins 1-2 (it is VDD_Target input instead), need to connect pin 19 to pins 1-2 on IDC-20 connector with external wire. J-Link works okay, as pin 1 has 3.3V output.
You can’t perform that action at this time.