Firt of all you need follow a USB -> TTL Converter
You can buy one FTDI UART R232
Or instead if you have a ARDUINO you can convert it as a USB to TTL converter How to use an Arduino as a USB to TTL converter
You need a Windows instance in order to execute the STM32
applications to burn the firmware into the Blue Pill
if you are using Linux
user or MacOSX
you can use VirtualBox
using the following image Window 7 STM32.
Then once you have the Virtual Box image imported, you can startup Windows 7 and connect your USB -> TTL Adapter to the Virtual Machine.
Make sure your Blue bill
jumper is switched to enable the flashing.
Connect the USB -> TLL through your virtual machine
Now you can open Flash Loader Demonstrator to flash the first version of the firmware.
Ensure your blue pill has the bott switchet to be flashed and connect the follow pins
FTDI | STM32 |
---|---|
TX | A10 |
RX | A9 |
VCC | 5V/3V3 (Voltage Switch) |
GND | G |
Then the programm can read the memory and the specs of your Blue pill
.
The firmware is stored in the desktop folder with the name stlink.hex
, click download to device and select the firmware file.
Now you can test your STLINK V2 Clone
connecting the Blue pill
through USB, You should see a new USB device. Connect that device through your virtual machine.
Open ST-Util
in order to update the current firmware
Now you can connect your Blue pill
(STLNK V2 Clone) to another Blue pill
. (don’t miss that short connection between PB12 and PB14!!!)