NOEL-ARTYA7-EX-QSG
December 2020, Version 1.2
26
www.cobhamaes.com/gaisler
Example 8.4.
$ ./build.sh
riscv-rtems5-gcc [...]
Link performed along with compile
md5sum -c coremark.md5
core_list_join.c: OK
core_main.c: OK
core_matrix.c: OK
core_state.c: OK
core_util.c: OK
coremark.h: OK
The output binary is named
coremark.exe
.
8.1.5. Creating a custom application
The simplest way to create a custom application is to copy the
hello
directory used in the example above and
modify the source code. New source code files can be added to the
Makefile
variable
CSRCS
.
8.2. Driver manager examples
8.2.1. Introduction
The directory
examples/drvmgr
contains RTEMS sample applications demonstrating how to use the RTEMS
driver manager together with NOEL-V. The driver manager is compatible with 32-bit and 64-bit NOEL-V systems.
The driver manager is a device driver API software abstraction which allows developing peripheral drivers inde-
pendent of bus attachment, host controller and CPU architecture. This abstraction allows sharing the same driv-
er implementation for GRLIB peripheral among the LEON 32-bit architecture, NOEL-V 32-bit architecture and
NOEL-V 64-bit architecture.
At the time of writing, the current driver manager device driver implementations are being adapted to the NOEL-
V systems and is progressing together with GRLIB hardware updates for endian and bus widths.
The following driver manager device drivers are fully supported on NOEL-V:
• GRGPIO
• GPTIMER
• AHBSTAT
• GRETH (32-bit NOEL-V)
8.2.2. Requirements
The NOEL-V RTEMS distribution 1.0.4 is required and riscv-rtems5-gcc should be available in PATH.
8.2.3. Build
To build all examples for all targets, use:
make
The example binaries will be placed inside the
bin
directory.
8.2.4. Targets
Examples will be built automatically for the following BSP variants:
• Single processor BSP variants
• noel32i
• noel32im
• noel32imafd
• noel64im