2026-01-10 4:22 PM
Hello everyone,
I’m working with STM32CubeIDE (v1.19) and STM32 projects, but currently I don’t have any STM32 board or debug probe available.
What I want to achieve is not real hardware simulation, but something like:
Step-by-step execution
Breakpoints
Variable watching
Logical flow debugging
Constraints:
:cross_mark: No STM32 board
:cross_mark: No ST-Link / J-Link
:cross_mark: No QEMU / Renode / Proteus
:white_heavy_check_mark: Only PC-based development
2026-01-10 4:49 PM
So why not QEMU? It is pure software and free. ARM (Keil) provides a software simulator that works with their IDE & debugger.
2026-01-10 5:03 PM
2026-01-12 7:30 AM - edited 2026-01-12 7:33 AM
So long as your code doesn't rely on any STM32 hardware interaction, you could build and run it in a PC native environment.
You can "stub" parts that would rely on STM32 hardware.
This is also a great way to test your embedded code!
(I am currently doing this to test/debug some STM32 accelerometer handling)
As @Pavel A. said, Why do you preclude QEMU? It is not a hardware simulator.
Anyhow, something like a Nucleo board is cheap - why not just get one?
2026-01-13 2:59 AM
@Andrew Neil wrote:You can "stub" parts that would rely on STM32 hardware.
If you use HAL for all your hardware interactions, you could just "stub" the HAL functions...
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.