1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #11582 from kaspar030/add_microbit_qemu_emulation

boards/microbit: add QEMU emulation
This commit is contained in:
Martine Lenders 2019-07-04 21:36:16 +02:00 committed by GitHub
commit 395aaf34e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View File

@ -14,5 +14,12 @@ else ifeq (pyocd,$(PROGRAMMER))
include $(RIOTMAKE)/tools/pyocd.inc.mk
endif
# QEMU 4.0 added microbit system emulation.
EMULATOR = qemu-system-arm
EMULATOR_FLAGS = -M microbit -device loader,file=$(ELFFILE) \
-serial stdio \
-monitor telnet::45454,server,nowait \
-nographic
# include nrf51 boards common configuration
include $(RIOTBOARD)/common/nrf51/Makefile.include

View File

@ -77,4 +77,23 @@ With the JLink firmware, you can now also do in-circuit debugging etc.
**Note: The current version of the JLink firmware
(JLink_OB_BBC_microbit_16-07-29.hex) does not support any serial port over USB,
so you can not use the RIOT shell with this firmware.**
### QEMU emulation
The microbit can be partly emulated by QEMU.
This requires at least QEMU 4.0 with ARM platform support enabled.
*NOTE*: not all peripherals are emulated. See
[this](https://wiki.qemu.org/Features/MicroBit) page for an overview.
E.g., there's no emulation for the radio, thus applications using that will
fail.
Use it like this:
$ cd examples/hello-world
$ BOARD=microbit make clean all -j4
$ BOARD=microbit make emulate
*/