How do I program BotBlox boards

– Copied from customer email –

How do I program your boards?

First you need to make the firmware programmer + cable assembly. For this, purchase…

  1. Tag Connect 6 Pin header ($33.95)

  2. Tag Connect retaining clip ($10)

  3. STLink V2 ($14.95)

  4. Jumper Wires ($2.10)

  5. Heatshrink kit ($36.81) (Optional, useful to keep the jumper wires in place).

Download STM32 ST-Link Utility (free).


  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.

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

  2. Connect the ST-LINK V2 to computer

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

  1. Open up STM32 ST-LINK Utility

  2. Go to Target > Settings…

  3. 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.

  4. 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 (or something similar) if successful.
Untitled (5)

  1. Open the .hex file.

  2. Go to Target > Program and Verify…

  3. Select the settings below and click start.

  4. If successful, the message below will be displayed.
    Untitled (8)

  5. For faster programming, select automatic mode