Flashing Boards with ST-Link V2
Hardware requirements
- A compatible BotBlox board (not all our boards can accept firmware)
- ST-Link V2
- Segger 6 pin pogo pin cable
- Segger pin retaining rubber (optional)
- Female to male jumper (dupont) cables
- A PC with STM32 ST-Link Utility installed
Steps
-
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.
Different ST-Links may have different pinouts. Please check the pinout written on your device rather than following this image. -
Connect the ST-LINK V2 to computer
-
Connect the 6 pin segger to the board and power on the board.
-
Open up STM32 ST-LINK Utility
-
Go to Target > Settings…
-
Open settings and ensure the settings are as below. You will see an error if the computer cannot find the ST-Link V2. This can be because the drivers for the ST-Link V2 are not installed. Open Windows Device Manager and check this.
-
Click ok, if you see the message below, it means the target (board) is not connected properly, or there is no power.
You should see the following message if successful.
-
Open the .hex file we provided.
-
Go to Target > Program and Verify…
-
Select the settings below and click start.
-
If successful, the message below will be displayed.
-
For faster programming, select automatic mode