qemu.md 717 B

QEMU

QEMU is only available for STM32 targets

Getting QEMU

The same QEMU binary found in the SDK can be used to build and develop the firmware. If you're using an Apple Silicon Mac, you might find it easier to build QEMU from source.

Build

The steps here are similar that of real hardware:

./waf configure --board=$BOARD --qemu
./waf build
./waf qemu_image_spi

where $BOARD is any STM32 based board.

Run

You can launch QEMU with the built image using:

./waf qemu

Console

You can launch a console using:

./waf qemu_console

Debug

You can debug with GDB using:

./waf qemu_gdb