NOEL-ARTYA7-EX-QSG
December 2020, Version 1.2
25
www.cobhamaes.com/gaisler
8. RTEMS Example applications
This section describes examples included in the distribution directory named
examples
.
8.1. Basic examples
To build an example, enter the source directory and issue make.
Example 8.1.
$ cd /opt/rtems-noel-1.0.4/examples/hello
$ make
Load and run the examples as described in Section 5.5.
Most of the examples described below use Make script fragments available in the tool chain installation directory
and is provided by the RTEMS kernel. An overview of this is given in the text file
rtems-noel-1.0.4/
kernel/share/rtems5/make/README
.
8.1.1.
hello
Prints
hello, world
to the console. It can be used as a minimal starting point for custom applications.
Example 8.2.
$ cd /opt/rtems-noel-1.0.4/examples/hello
$ make
[...]
$ grmon -digilent -u
[...]
grmon3> dtb noel-xilinx-artya7.dtb
grmon3> load hello.exe
grmon3> run
hello, world
8.1.2.
tasks
Demonstrates the use of multiple tasks and the RTEMS directive
rtems_clock_get_tod()
.
Example 8.3.
grmon3> run
*** CLOCK TICK TEST ***
TA1 - rtems_clock_get_tod - 09:00:00 12/31/1988
TA2 - rtems_clock_get_tod - 09:00:00 12/31/1988
TA3 - rtems_clock_get_tod - 09:00:00 12/31/1988
TA1 - rtems_clock_get_tod - 09:00:04 12/31/1988
TA2 - rtems_clock_get_tod - 09:00:09 12/31/1988
TA1 - rtems_clock_get_tod - 09:00:09 12/31/1988
TA3 - rtems_clock_get_tod - 09:00:14 12/31/1988
TA1 - rtems_clock_get_tod - 09:00:14 12/31/1988
TA2 - rtems_clock_get_tod - 09:00:19 12/31/1988
TA1 - rtems_clock_get_tod - 09:00:19 12/31/1988
8.1.3.
dhrystone
This directory contains the Dhrystone benchmark source code and Make script.
8.1.4.
coremark
The CoreMark benchmark program from EEMBC. See the file
coremark/README.NOEL-V
for information
on how to set the build parameters.
Build for NOEL-V by entering the
coremark
directory and run the script named
build.sh
: