Bluepill

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

Interfaces

Interface Hardware Supported TinyGo Support
GPIO YES YES
UART YES YES
SPI YES YES
I2C YES YES
ADC YES Not yet
PWM YES Not 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