Cortex-R8 Virtual
Overview
The Cortex-R8 Virtual board is a virtual platform that can be emulated with Renode. Edit the boards/renode/cortex_r8_virtual/support/cortex_r8_virtual.repl file to adapt the platform layout to your needs.
Refer to the Renode documentation to learn how to obtain Renode for your host.
Programming and debugging
Building
Applications for the cortex_r8_virtual
board target can be built
using the standard build flow (see Building an Application):
west build -b cortex_r8_virtual
Flashing
Your software will run in simulation and you don’t need to “flash” the board in a traditional way,
but you can use this configuration to run Zephyr applications
and kernel tests directly in Renode with the use of the run
command.
For example, with the Basic Synchronization sample:
# From the root of the zephyr repository
west build -b cortex_r8_virtual samples/synchronization
west build -t run
This will build an image with the synchronization sample app, boot it using Renode, and display the following console output:
*** Booting Zephyr OS build v3.6.0-5689-g2a5c606abfa7 ***
thread_a: Hello World from cpu 0 on cortex_r8_virtual!
thread_b: Hello World from cpu 0 on cortex_r8_virtual!
thread_a: Hello World from cpu 0 on cortex_r8_virtual!
thread_b: Hello World from cpu 0 on cortex_r8_virtual!
Exit Renode by pressing CTRL+C.
Debugging
Refer to the detailed overview about Application Debugging.
Renode can serve as a GDB server. For more information, refer to the Renode documentation about GDB debugging.