1.. zephyr:board:: qemu_riscv32_xip
2
3Overview
4********
5
6The RISCV32 XIP QEMU board configuration is used to emulate the RISCV32 architecture.
7
8Programming and Debugging
9*************************
10
11Applications for the ``qemu_riscv32_xip`` board configuration can be built and run in
12the usual way for emulated boards (see :ref:`build_an_application` and
13:ref:`application_run` for more details).
14
15Flashing
16========
17
18While this board is emulated and you can't "flash" it, you can use this
19configuration to run basic Zephyr applications and kernel tests in the QEMU
20emulated environment. For example, with the :zephyr:code-sample:`synchronization` sample:
21
22.. zephyr-app-commands::
23   :zephyr-app: samples/synchronization
24   :host-os: unix
25   :board: qemu_riscv32_xip
26   :goals: run
27
28This will build an image with the synchronization sample app, boot it using
29QEMU, and display the following console output:
30
31.. code-block:: console
32
33   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
34   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
35   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
36   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
37   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
38   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
39   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
40   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
41   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
42   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
43   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
44   thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
45   thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
46
47Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
48
49Debugging
50=========
51
52Refer to the detailed overview about :ref:`application_debugging`.
53