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.
How does the stlink know whether to use swd or jtag?
Hi Osman
I am not sure how the STLink knows whether to use SWD or JTAG. I have not been using the ST microcontrollers much lately, but will look into this when I start using them again.