2017-06-27 21:41:17 +08:00
|
|
|
.. _qemu_xtensa:
|
|
|
|
|
|
|
|
Xtensa Emulation (QEMU)
|
|
|
|
#######################
|
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
|
|
|
The QEMU board configuration is used to emulate the Xtensa architecture. This board
|
|
|
|
configuration provides support for the Xtensa simulation environment.
|
|
|
|
|
2019-02-10 23:57:07 +08:00
|
|
|
.. figure:: qemu_xtensa.png
|
|
|
|
:width: 600px
|
|
|
|
:align: center
|
|
|
|
:alt: Qemu
|
|
|
|
|
|
|
|
Qemu (Credit: qemu.org)
|
|
|
|
|
2017-06-27 21:41:17 +08:00
|
|
|
Programming and Debugging
|
|
|
|
*************************
|
|
|
|
|
|
|
|
Use this configuration to run basic Zephyr applications and kernel tests in the QEMU
|
|
|
|
emulated environment, for example, with the :ref:`synchronization_sample`:
|
|
|
|
|
2017-11-11 02:01:27 +08:00
|
|
|
.. zephyr-app-commands::
|
|
|
|
:zephyr-app: samples/synchronization
|
2018-01-18 00:32:31 +08:00
|
|
|
:host-os: unix
|
2017-11-11 02:01:27 +08:00
|
|
|
:board: qemu_xtensa
|
|
|
|
:goals: run
|
2017-06-27 21:41:17 +08:00
|
|
|
|
|
|
|
This will build an image with the synchronization sample app, boot it using
|
|
|
|
QEMU, and display the following console output:
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
***** BOOTING ZEPHYR OS v1.8.99 - BUILD: Jun 27 2017 13:09:26 *****
|
|
|
|
threadA: Hello World from xtensa!
|
|
|
|
threadB: Hello World from xtensa!
|
|
|
|
threadA: Hello World from xtensa!
|
|
|
|
threadB: Hello World from xtensa!
|
|
|
|
threadA: Hello World from xtensa!
|
|
|
|
threadB: Hello World from xtensa!
|
|
|
|
threadA: Hello World from xtensa!
|
|
|
|
threadB: Hello World from xtensa!
|
|
|
|
threadA: Hello World from xtensa!
|
|
|
|
threadB: Hello World from xtensa!
|
|
|
|
|
|
|
|
Debugging
|
|
|
|
=========
|
|
|
|
|
|
|
|
Refer to the detailed overview about :ref:`application_debugging`.
|