Electronic – How to Use an External ST-Link/V2 with the STM32F4 Discovery Board

jtagprogrammerstm32stm32f4swd

I have a STM32F4 Discovery board and a ST-Link/V2 programmer.

I want to use my own ST-Link (not the embedded one) for programming and debugging the board.

How should I connect the external ST-Link to the board ?

Best Answer

You'll need to isolate the microcontroller from the st-link portion of the board. To do this just remove the jumpers on the CN3 pins.

CN3 location 'CN3'

Then, to use your external st-link, make the following connections to the microconroller pin headers:

  • SWDIO -> PA13
  • SWCLK -> PA14
  • GND -> GND
  • VAPP -> 3V/VDD

  • Do not connect the USB cable

Program it in SW mode.

Not sure why you'd want to do this, unless you wanted to use JTAG to program it instead. If that's the case let me know and I'll update the answer.