QEMU#

Important

Some platforms have dedicated QEMU board targets: qemu_emery, qemu_flint, and qemu_gabbro.

Getting QEMU#

The QEMU binary ships with the PebbleOS SDK.

Build#

The steps here are similar that of real hardware:

./pbl configure --board=$BOARD
./pbl build

where $BOARD is one of the dedicated QEMU boards (qemu_emery, qemu_flint, qemu_gabbro).

Run#

You can launch QEMU with the built image using:

./pbl qemu

The flash image is rebuilt by default on every launch. To keep the existing flash image (e.g. to preserve stored apps), pass --keep-flash-image:

./pbl qemu --keep-flash-image

Console#

You can launch a console using:

./pbl console

Debug#

You can debug with GDB using:

./pbl debug