|
| 1 | +.. _cortex_r8_virtual: |
| 2 | + |
| 3 | +Cortex-R8 Virtual |
| 4 | +################# |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The Cortex-R8 Virtual board is a virtual platform that can be emulated with Renode. |
| 10 | +Edit the :zephyr_file:`boards/renode/cortex_r8_virtual/support/cortex_r8_virtual.repl` file to adapt the platform layout to your needs. |
| 11 | + |
| 12 | +Refer to the `Renode documentation <https://renode.readthedocs.io/en/latest/>`_ |
| 13 | +to learn how to obtain Renode for your host. |
| 14 | + |
| 15 | +Programming and debugging |
| 16 | +************************* |
| 17 | + |
| 18 | +Building |
| 19 | +======== |
| 20 | + |
| 21 | +Applications for the ``cortex_r8_virtual`` board target can be built |
| 22 | +using the standard build flow (see :ref:`build_an_application`): |
| 23 | + |
| 24 | +.. zephyr-app-commands:: |
| 25 | + :board: cortex_r8_virtual |
| 26 | + :goals: build |
| 27 | + |
| 28 | +Flashing |
| 29 | +======== |
| 30 | + |
| 31 | +Your software will run in simulation and you don't need to "flash" the board in a traditional way, |
| 32 | +but you can use this configuration to run Zephyr applications |
| 33 | +and kernel tests directly in Renode with the use of the ``run`` command. |
| 34 | + |
| 35 | +For example, with the :zephyr:code-sample:`synchronization` sample: |
| 36 | + |
| 37 | +.. zephyr-app-commands:: |
| 38 | + :zephyr-app: samples/synchronization |
| 39 | + :host-os: unix |
| 40 | + :board: cortex_r8_virtual |
| 41 | + :goals: run |
| 42 | + |
| 43 | +This will build an image with the synchronization sample app, boot it using |
| 44 | +Renode, and display the following console output: |
| 45 | + |
| 46 | +.. code-block:: console |
| 47 | +
|
| 48 | + *** Booting Zephyr OS build v3.6.0-5689-g2a5c606abfa7 *** |
| 49 | + thread_a: Hello World from cpu 0 on cortex_r8_virtual! |
| 50 | + thread_b: Hello World from cpu 0 on cortex_r8_virtual! |
| 51 | + thread_a: Hello World from cpu 0 on cortex_r8_virtual! |
| 52 | + thread_b: Hello World from cpu 0 on cortex_r8_virtual! |
| 53 | +
|
| 54 | +Exit Renode by pressing :kbd:`CTRL+C`. |
| 55 | + |
| 56 | +Debugging |
| 57 | +========= |
| 58 | + |
| 59 | +Refer to the detailed overview about :ref:`application_debugging`. |
| 60 | + |
| 61 | +Renode can serve as a GDB server. For more information, refer to the |
| 62 | +`Renode documentation about GDB debugging <https://renode.readthedocs.io/en/latest/debugging/gdb.html>`_. |
0 commit comments