View this project on CADLAB.io.
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
- Interfaces pinout
- Original ST-Link V2 by STMicroelectronics
- J-Link by SEGGER
- Chinese ST-Link V2 dongle
- Chinese MX-Link dongle
- Nucleo-32 original ST-Link V2-1 by STMicroelectronics
- Nucleo-64 original ST-Link V2-1 by STMicroelectronics
- Nucleo-144 original ST-Link V2-1 by STMicroelectronics
- Blue Pill board (STM32F103C8T6)
- Black Pill board (STM32F103C8T6)
- Tag-Connect 6 Pin Cable (TC2030-IDC)
- Rev. B board info
- Rev. A board info
- Original board info
- 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
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 |
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 |
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
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
CN2 connector pinout:
Name | Pin | Pin | Name |
---|---|---|---|
- | - | 5 | NC |
3.3V | 4 | 3 | SWCLK |
GND | 2 | 1 | SWDIO |
CN4 connector pinout:
Pin | Name |
---|---|
1 | VDD_TRGT |
2 | SWCLK |
3 | GND |
4 | SWDIO |
5 | NRST |
6 | SWO |
CN6 connector pinout:
Pin | Name |
---|---|
1 | VDD_TRGT |
2 | SWCLK |
3 | GND |
4 | SWDIO |
5 | NRST |
6 | SWO |
Programming connector pinout:
Pin | Name |
---|---|
1 | GND |
2 | SWCLK |
3 | SWDIO |
4 | 3.3V |
Programming connector pinout:
Pin | Name |
---|---|
1 | GND |
2 | SWCLK |
3 | SWDIO |
4 | 3.3V |
IDC-6 connector pinout:
Name | Pin | Pin | Name |
---|---|---|---|
3.3V | 1 | 2 | SWDIO |
NRST | 3 | 4 | SWCLK |
GND | 5 | 6 | SWO |
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
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.
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.