ST-link V2 schematic and PCB in kiCAD with initial firmware through UART.
- PCB templates for prototyping at home are photoresist.svg and lut.svg, also you can convert PCB to any of appropriate formats using KiCAD.
- As you seen above, for this solution you do not need any other st-link, you need only usb-uart adapter.
- When you got a board, pull up pin 44 BOOT0 to Vbus by R4 resistor, so after power connect the MCU starts up from the UART bootloader.
- Power up board by USB and connect it to your PC through UART by RX and TX pads.
- Write dummy firmware from STLinkV2_bin.zip using the flasher utility (ST UM0462).
- Return pull down resistor to pin 44 BOOT0 (change location of 10-100K resistor from R4 to R5 place).
- Then connect it to USB and write the firmware from ST using upgrade utility stlink-V2.J21.S4.zip. Now you got a working st-link clone.
On the linux using the Virtualbox software this method is working too.