Using the ST-LINK/V2 in SWD Mode to Program STM32F100 Microcontrollers

In this tutorial, a STM32 Value Line Discovery board is programmed using a ST-LINK/V2 in SWD (Serial Wire Debug) mode. Only four wires need to be connected between the ST-LINK/V2 programmer/debugger and a STM32F100 microcontroller in order to load a program to it when using SWD.