Start simulating free

STM32 Blue Pill

The Blue Pill is a small, inexpensive board with an STM32F103C8: an ARM Cortex-M3 at 72 MHz with 3.3 V logic. Circzy compiles it with the official STM32duino 2.12.0 core and simulates it with its built-in Cortex-M3 emulator.

STM32 Blue Pill STM32F103C8

ARM Cortex-M3 72 MHz, 32 pin GPIO, 3.3 V.

Pins

FeatureDetails
Pin namesPort names such as PA0, PB12 and PC13
Analog inputsPA0–PA7, PB0 and PB1. analogRead() returns 0–1023 by default.
I²CPB7 (SDA) and PB6 (SCL)
SPIPA5 (SCK), PA6 (MISO), PA7 (MOSI) and PA4 (SS)
Serial MonitorSerial on USART1: PA9 (TX) and PA10 (RX)
Built-in LEDPC13, lit when the pin is LOW

Timers

Timers are assigned as on the real board:

Library or functionTimerPins
ServoTIM2PA0–PA3
tone()TIM3PA6, PA7, PB0, PB1
SoftwareSerial, IRremoteTIM4PB6–PB9

Avoid analogWrite() on pins of a timer that one of these libraries is already using.

Default pins used by blocks

Notes

Ready to try it?

Sign in with Google, pick a board and run your first simulation in two minutes. Free during the launch period.

Start simulating free