QEMU runs embedded firmware in a simulated computer system, letting you test and iterate without depending on physical hardware. Its system mode can model a CPU, memory, and some board peripherals. section 1.7.2 section 2.7.2
For bare-metal Rust, QEMU can run application logic, startup code, and semihosting-based output. Peripheral support is incomplete, and RTT is unsupported in the described setup, so emulation is a useful first step—not a substitute for checking firmware on real hardware. section 2.7.2
A basic embedded Rust workflow adapts the target project to a modeled board:
- Select the STM32F100 device used by the modeled STM32VLDISCOVERY board instead of the STM32F103 target. section 2.7.2
- Update the memory map, build the firmware, and launch it with QEMU’s ARM system emulator. section 2.7.2
- Use semihosting for output; the described QEMU setup does not support RTT. section 2.7.2
qemu-system-arm -machine stm32vldiscovery \
-cpu cortex-m3 \
-nographic \
-semihosting-config enable=on,target=native \
-kernel target/thumbv7m-none-eabi/release/bluepill-blinky
Example command for running a Cortex-M3 firmware image on the STM32VLDISCOVERY model with semihosting enabled. section 2.7.2

