Bluepill

The Bluepill is a popular, ultra-cheap and compact ARM development board based on the ST Micro STM32F103C8 SoC.

Interfaces

InterfaceHardware SupportedTinyGo Support
GPIOYESYES
UARTYESYES
SPIYESYES
I2CYESYES
ADCYESNot yet
PWMYESNot yet

Machine Package Docs

Documentation for the machine package for the Bluepill

Flashing

OpenOCD

Programs are loaded onto the Bluepill with a separate hardware programmer such as the STLink v2 board, using the openocd command line utility program to perform the board flashing. You must install OpenOCD before you will be able to flash the Bluepill board with your TinyGo code.

  • Plug your STLink v2 programmer into your computer’s USB port.
  • Plug your Bluepill into the STLink v2 programmer using the Bluepill SWIO, SWCLK, 3V3 and GND pins.
  • Build and flash your TinyGo program using tinygo flash -target=bluepill