Skip to content

STM32F030C8 based Bluepill

Support for the STM32F030C8 based Bluepill

Overview

The STM32F030C8 based Bluepill is a very cheap breakout board for the STM32F030C8 MCU.

Hardware

STM32F030C8 based Bluepill

MCU

MCUSTM32F030C8T6
FamilyARM Cortex-M0
VendorST Microelectronics
RAM8 KiB
Flash64 KiB
Frequencyup to 48MHz
FPUno
Timers8 (2x watchdog, 1 SysTick, 5x 16-bit)
ADCs1x 12-bit
UARTs2
SPIs2
I2Cs2
RTC1
Vcc2.0V - 3.6V
DatasheetDatasheet
Reference ManualReference Manual
Programming ManualProgramming Manual

Flashing the device

The STM32F030C8 based Bluepill board does not include a programmer. You have to connect a separate ST-Link programmer to the (SW)DIO, (SW)CLK and GND pins on the board.

If you want a serial terminal, you have to connect a separate USB-Serial adapter to the PA09 (TX) and PA10 (RX) pins on the board.

The easiest way to program the board is to use OpenOCD. Once you have installed OpenOCD (look here for installation instructions), you can flash the board simply by typing

make BOARD=bluepill-stm32f030c8 flash

and debug via GDB by simply typing

make BOARD=bluepill-stm32f030c8 debug

Known Issues

Flashing fails

The board does not expose a pin for the reset signal but wires it only to the reset button. You can work around this by pressing the reset button when OpenOCD wants to connect to the Blue Pill, or keep it pressed until OpenOCD tries to connect. Hit the reset button again after flashing in order to boot the newly flashed image.