Difference between revisions of "DIY STM32 Programmer (ST-Link/V2-1)"

From Stm32World Wiki
Jump to navigation Jump to search
Line 39: Line 39:
 
== Miscellaneous Links ==
 
== Miscellaneous Links ==
  
 +
* [https://github.com/lbthomsen/st-link Github Repository of schematics and pcb]
 
* [https://ipfs.subutai.io/ipfs/QmdjW4GnqhQYZTfS2NhhZkgkSLiP7iwf8XCB8tSt32QCHi/MB1136.pdf NUCLEO-XXXXRX Schematics (includes ST-Link V2.1]
 
* [https://ipfs.subutai.io/ipfs/QmdjW4GnqhQYZTfS2NhhZkgkSLiP7iwf8XCB8tSt32QCHi/MB1136.pdf NUCLEO-XXXXRX Schematics (includes ST-Link V2.1]
 
* [http://embedblog.eu/?p=780 BUILDING A CUSTOM ST-LINK V2.1]
 
* [http://embedblog.eu/?p=780 BUILDING A CUSTOM ST-LINK V2.1]
 
* [https://dalaotech.com/2020/03/31/784/ Chinese blog post creating a custom ST-Link]
 
* [https://dalaotech.com/2020/03/31/784/ Chinese blog post creating a custom ST-Link]

Revision as of 02:23, 13 July 2021

Original ST-Link

ST-Link devices are almost essential when developing software for the STM32 MCUs. They are relatively cheap and easily available.

They roughly fall into two different categories. ST themselves make a number of them and they all work quite well.

One thing that annoys me with the original ST-Link devices is that the programming header is unlabelled. This essentially mean that every time I use it I have to Google for the actual pinout.

Chinese knock off ST-Link/V2

There are also a lot of Chinese clones available and while they have some limitations they also work quite well.

Unfortunately they do not have the SWO pin on the header, so any debug trace is impossible. For flashing and normal debugging they work fine though.

Original ST-Link V2.1

The schematic of the original ST-Link is readily available

ST-Link V2.1 Original Schematics.png

Schematics

Based on ST's original schematics, creating a version using only parts from JLCPCB's parts library was easy.

DIY ST-Link V2.1.svg

One thing I left out was the serial resistors of the programming header. This might very well come back and bite me in the ass but space is going to be at a premium.

PCB

The final rev. a layout looks like this:

PCB Layout rev. a.png

The KiCAD 3D model:

PCB Layout rev. a - 3D model.png

Miscellaneous Links