breadboard
docs

Example project · Start here

Blue Pill · USART1 echo

The genuine STM32F103C8 runs the bundled Serial sketch and echoes monitor input over the PA9/PA10 USART1 seam. USB supplies power only; there is no F103 USB device or MicroPython. Physical clones are outside this model.

The Blue Pill · USART1 echo circuit as rendered by the simulator

What's on the bench

  • Blue Pill STM32F103C8

The code

This Arduino C++ sketch lives in Code; sign in and press Compile & upload to build real firmware for the emulated board.

// SPDX-License-Identifier: MIT
// Copyright (c) 2026 Breadboard. See LICENSE.
void setup() {
  Serial.begin(115200);
  Serial.println("hello from stm32");
}
void loop() {
  while (Serial.available()) Serial.write(Serial.read());
}

Related projects