Flashing Boards with ST-Link V2

Hardware requirements

  1. Board with segger 6-pin footprint and STM microcontroller installed

  2. ST-Link V2

  3. USB extension cable (Optional)

  4. Segger 6 pin pogo pin cable (here)

  5. Segger pin retaining clip (optional)

  6. Jumper cables

Untitled

Software requirements

  1. STM32 ST-Link Utility

  2. Hex file from STM32

Steps

  1. Connect the ST Link V2 to the pogo pin 6 pin header. The photo below shows the pins to connect to on the pogo pin header. The corresponding pins on the ST-Link V2 are labelled on the device. Use any jumper cables less than 300mm.

Untitled

Untitled

Different ST-Links may have different pinouts. Please check the pinout written on your device rather than following this image.

  1. Connect the ST-LINK V2 to computer

  2. Connect the 6 pin segger to the board and power on the board.