I assume you are using a BluePill Board with an STLink programmer. You can burn the STM32duino bootloader, which will enable you to program over USB. This is not in the scope of this HowTo (for now).

Download the Arduino IDE

Go to the Arduino Download Page and Download the Package that coresponds to your Operating System.

Now start the Arduino IDE by running the arduino binary.

Add STM32 Boardsupport

Go to File -> Preferences and copy the following URL to the Additional Board Manager URLs field:


For now the STM32duino project is refactoring its codebase and does not support the Bluepill. We use an old snapshot to circumvate this. Once this is fixed we can use this URL: https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json

Driver (Windows only)

On Windows you will have to download the driver and if you want the device manager utility, which will both require you to have a free account.

Choose Tools->Board->Boardmanager... , search for bluepill and install the STM32F1xx Cores by ST-Microelectronics package.

Go to File->Examples->01. Basics->Blink

Now go to Tools->Board->STM32F1xx->BluePill F103C8. Choose Tools->Upload Method->STLink

Click Upload. You should end up with an blinking LED.