breadboard
simulators
Breadboard · Simulator briefSTM32 · Rev 2026.11breadboard.build/stm32-simulator

Product brief · STM32 simulator

The STM32
simulator.

Blue Pill, Black Pill and Nucleo running real STM32 firmware.

Run real firmware on an STM32 Blue Pill, Black Pill or Nucleo in your browser. Start with a wired Blink or serial example, then bring your own STM32 image to test against connected parts and instruments.

What runs on the bench

Figure 1 · STM32 Blue Pill
STM32 Blue Pill

Drawn by the bench renderer · not to physical scale

  1. Active-low PC13 LED

    The pin sinks current to turn the onboard LED on. Watch its state in the bundled Blink.

  2. STM32F103C8

    The Cortex-M3 runs the application image, including code built with STM32duino.

  3. USB power

    The Blue Pill’s micro-USB supplies power. Sketch output reaches the serial monitor through USART1.

  4. GPIO and peripheral pins

    Wire inputs, PWM outputs or a bus device. USART1 uses PA9 and PA10.

  5. Reset button

    Restart the board and use Serial to check what the firmware prints on boot.

Selection guide

Table 1 · 5 boards
Table 1. STM32 selection guide
ConnectivityFirmware
BoardCoreUARTUSB CDCArduinoMicroPython.bin / HEX / ELFBest first project
Blue PillSTM32F103C8 · Arm Cortex-M3, 72 MHzBlue Pill · onboard Blink
ST Nucleo-F401RESTM32F401RE · Arm Cortex-M4F, up to 84 MHzNucleo-F411RE · MicroPython LED and buttonRelated starter project
WeAct Black Pill F401CCSTM32F401CC · Arm Cortex-M4F, up to 84 MHzBlack Pill F411CE · Arduino SerialRelated starter project
ST Nucleo-F411RESTM32F411RE · Arm Cortex-M4FNucleo-F411RE · Arduino Serial
WeAct Black Pill F411CESTM32F411CE · Arm Cortex-M4FBlack Pill F411CE · Arduino Serial
  • Supported
  • Not on this board

The Blue Pill model uses a genuine 64 KiB STM32F103C8. The F401 and F411 boards use Cortex-M4F chips and 3.3 V GPIO. A Nucleo and a Black Pill with a related chip can still have different pin assignments, startup clock settings and serial connections. Use the correct target and board clock configuration when building.

Functional overview

Start with the LED and its polarity

The Blue Pill’s PC13 LED is active low: the pin sinks current to turn it on. Run the shipped Blink before you swap in your own firmware. On the Nucleo-F401RE the onboard PA5 LED is active high. Check the pin label and polarity when moving an example between boards to avoid confusing an inverted result with a firmware failure.

Controller transactions, timers and ADC

Across the supported boards you can wire GPIO, use timer PWM, read ADC voltages, and talk to modeled I²C and SPI devices. Use a GPIO chip-select line for an SPI device. The F401 and F411 model selected DMA requests for SPI, ADC, I²C and UART. If you need to compare edges or check an analog level, open the logic analyzer or oscilloscope in Test. Supported bus transactions do not necessarily appear as bit-by-bit waveforms there.

UART and USB consoles

The Nucleo boards send USART2 output to Serial through the modeled ST-LINK connection. The Blue Pill uses USART1 on PA9 and PA10, like an external USB-to-UART adapter. A Black Pill running a USB=None STM32duino build can use its UART, while the bundled Black Pill F411CE MicroPython image uses USB CDC. Check which port your firmware uses if Serial stays quiet.

Sleep, alarms and reset

The F401 and F411 support RTC calendar and alarm behavior, Sleep, Stop and Standby with modeled wake sources. The F103 supports the RTC clock and alarm with ordinary Sleep. An application that works in an always-awake loop can still need a different test for the point where it enters low power and returns on an interrupt.

Official and board-specific MicroPython

Use the official images on Nucleo-F401RE and Nucleo-F411RE. On the Black Pill F411CE, select the bundled Breadboard TinyUSB build. A first boot that formats the filesystem can take a while. Wait for the prompt in Serial, then use a short command before sending a full script from Code.

Application examples

Blue Pill · onboard Blink

Fig. 2 · Blue Pill · Arduino

Blue Pill · onboard Blink

Run it in the browser
Blue Pill · USART1 echo

Fig. 3 · Blue Pill · Arduino

Blue Pill · USART1 echo

Run it in the browser
Nucleo-F411RE · MicroPython LED and button

Fig. 4 · ST Nucleo-F411RE · MicroPython

Nucleo-F411RE · MicroPython LED and button

Run it in the browser
Black Pill F411CE · Arduino Serial

Fig. 5 · WeAct Black Pill F411CE · Arduino

Black Pill F411CE · Arduino Serial

Run it in the browser

Start with the Blue Pill Blink, then send a line to the USART1 echo example. Use the Nucleo and Black Pill serial sketches to compare which serial port each board uses. The F411 MicroPython projects are a practical place to see a button input and an LED output in Python.

Quick start

  1. Open a board with known firmware

    Run the Blue Pill Blink or one of the serial projects in the example index. Check power, then look for the LED or the expected line in Serial. Starting with the shipped program gives you a circuit to compare when you load your own.

  2. Build or load for the correct flash layout

    In the Inspector, use an Intel HEX, an Arm ELF, or a raw binary linked at 0x08000000. The program must fit the board’s flash memory. To compile in Code, sign in and choose USB=None for your STM32duino board.

  3. Check the board’s output

    Open Serial for the board’s console and try the echo example to test input as well as output. If you wired a sensor, check GPIO selection, voltage and address before expanding the program.

Questions

Is there a free STM32 simulator?
Yes. The Blue Pill, supported Black Pill and Nucleo boards, their circuits, firmware uploads and instruments are free in Breadboard. Peripherals and the console vary by chip and board, as the table describes.
Do I need an account to start?
No. Run an example or upload your own STM32 image signed out. A signed-in account is required for hosted STM32duino compilation on the supported targets.
Which STM32 boards are supported?
The Blue Pill uses STM32F103C8. The supported Nucleo boards are Nucleo-F401RE and Nucleo-F411RE. The Black Pill comes in F401CC and F411CE versions. Select the exact board, especially when choosing a MicroPython image or deciding which serial port to use.
Can I use STM32CubeIDE, Arduino or MicroPython?
You can build locally in STM32CubeIDE and upload a matching ELF, HEX or raw application binary. Check the startup clock and peripheral settings for your board. Signed in, Code compiles STM32duino sketches for the Blue Pill, Black Pill and Nucleo-F411RE. MicroPython runs on the Nucleo-F401RE, Nucleo-F411RE and Black Pill F411CE.
Will my firmware also run on a real STM32?
A binary built for the same hardware and flash layout can be programmed with a normal hardware programmer or the board’s bootloader. Validate the circuit and any unmodeled functionality on the physical board. The simulator upload does not connect to ST-LINK or flash your device.
Is there an STM32 Serial monitor?
Yes. The Nucleo uses USART2 through ST-LINK. The Blue Pill uses USART1, and the Black Pill’s port depends on the firmware and USB mode. Open the matching example guide for the console used by its program.
What is the difference between the Blue Pill and the Black Pill?
The Blue Pill uses an STM32F103C8 (Cortex-M3, 64 KiB flash), and its USB connector only supplies power. The Black Pill uses an STM32F401CC or STM32F411CE (Cortex-M4F) with an RTC calendar, low-power modes, selected DMA and a USB CDC console. Choose the board your firmware was built for.
STM32 simulator · product briefRev 2026.11Page 1 of 1