ST-LINK in-circuit debugger/programmer for STM8 and STM32
Figure 4 shows you how to connect the ST-LINK if a standard 4-pin SWIM connector is present on your application board. The references of the connectors manufactured by ERNI which must be used on