|
| 1 | +.. zephyr:board:: qemu_max |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +This board configuration will use QEMU to emulate a generic MAX hardware |
| 7 | +platform. |
| 8 | + |
| 9 | +This configuration provides support for an ARM MAX CPU and these |
| 10 | +devices: |
| 11 | + |
| 12 | +* GIC-400 interrupt controller |
| 13 | +* ARM architected timer |
| 14 | +* PL011 UART controller |
| 15 | + |
| 16 | +Hardware |
| 17 | +******** |
| 18 | +Supported Features |
| 19 | +================== |
| 20 | + |
| 21 | +The following hardware features are supported: |
| 22 | + |
| 23 | ++--------------+------------+----------------------+ |
| 24 | +| Interface | Controller | Driver/Component | |
| 25 | ++==============+============+======================+ |
| 26 | +| GIC | on-chip | interrupt controller | |
| 27 | ++--------------+------------+----------------------+ |
| 28 | +| PL011 UART | on-chip | serial port | |
| 29 | ++--------------+------------+----------------------+ |
| 30 | +| ARM TIMER | on-chip | system clock | |
| 31 | ++--------------+------------+----------------------+ |
| 32 | + |
| 33 | +The kernel currently does not support other hardware features on this platform. |
| 34 | + |
| 35 | +Devices |
| 36 | +======== |
| 37 | +System Clock |
| 38 | +------------ |
| 39 | + |
| 40 | +This board configuration uses a system clock frequency of 62.5 MHz. |
| 41 | + |
| 42 | +Serial Port |
| 43 | +----------- |
| 44 | + |
| 45 | +This board configuration uses a single serial communication channel with the |
| 46 | +CPU's UART0. |
| 47 | + |
| 48 | +Known Problems or Limitations |
| 49 | +============================== |
| 50 | + |
| 51 | +The following platform features are unsupported: |
| 52 | + |
| 53 | +* Writing to the hardware's flash memory |
| 54 | + |
| 55 | + |
| 56 | +Programming and Debugging |
| 57 | +************************* |
| 58 | + |
| 59 | +Use this configuration to run basic Zephyr applications and kernel tests in the QEMU |
| 60 | +emulated environment, for example, with the :zephyr:code-sample:`synchronization` sample: |
| 61 | + |
| 62 | +.. zephyr-app-commands:: |
| 63 | + :zephyr-app: samples/synchronization |
| 64 | + :host-os: unix |
| 65 | + :board: qemu_max |
| 66 | + :goals: run |
| 67 | + |
| 68 | +This will build an image with the synchronization sample app, boot it using |
| 69 | +QEMU, and display the following console output: |
| 70 | + |
| 71 | +.. code-block:: console |
| 72 | +
|
| 73 | + ***** Booting Zephyr OS build zephyr-v2.0.0-1657-g99d310da48e5 ***** |
| 74 | + threadA: Hello World from cpu 0 on qemu_max! |
| 75 | + threadB: Hello World from cpu 0 on qemu_max! |
| 76 | + threadA: Hello World from cpu 0 on qemu_max! |
| 77 | + threadB: Hello World from cpu 0 on qemu_max! |
| 78 | + threadA: Hello World from cpu 0 on qemu_max! |
| 79 | + threadB: Hello World from cpu 0 on qemu_max! |
| 80 | + threadA: Hello World from cpu 0 on qemu_max! |
| 81 | + threadB: Hello World from cpu 0 on qemu_max! |
| 82 | +
|
| 83 | +Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`. |
| 84 | + |
| 85 | +Debugging |
| 86 | +========= |
| 87 | + |
| 88 | +Refer to the detailed overview about :ref:`application_debugging`. |
| 89 | + |
| 90 | +Networking |
| 91 | +========== |
| 92 | + |
| 93 | +The board supports the QEMU built-in Ethernet adapter to connect to the host |
| 94 | +system. See :ref:`networking_with_eth_qemu` for details. |
| 95 | + |
| 96 | +It is also possible to use SLIP networking over an emulated serial port. |
| 97 | +Although this board only supports a single UART, so subsystems like logging |
| 98 | +and shell would need to be disabled, therefore this is not directly supported. |
| 99 | + |
| 100 | +References |
| 101 | +********** |
| 102 | + |
| 103 | +.. target-notes:: |
| 104 | + |
| 105 | +1. (ID050815) ARM® Cortex®-A Series - Programmer’s Guide for ARMv8-A |
| 106 | +2. (ID070919) Arm® Architecture Reference Manual - Armv8, for Armv8-A architecture profile |
| 107 | +3. (ARM DAI 0527A) Application Note Bare-metal Boot Code for ARMv8-A Processors |
| 108 | +4. AArch64 Exception and Interrupt Handling |
| 109 | +5. Fundamentals of ARMv8-A |
0 commit comments