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.

Programming STM32 Microcontroller Flash in Windows

STM32 ARM Cortex-M3 microcontroller from ST Microelectronics can be programmed in Windows without the need of commercial programming tools or the need to install any toolchain.

Using the free STM32 ST-LINK utility software from ST, STM32 microcontrollers can be programmed using an external ST-LINK (e.g. the ST-LINK/V2) or using the embedded ST-LINK that can be found on ST evaluation boards such as the STM32 Value Line Discovery kit.

This tutorial on the Starting Electronics website explains how to install and use the ST-LINK utility software.