
DE10-Standard
User Manual
88
www.terasic.com
January 19, 2017
Chapter 6
Examples for HPS SoC
This chapter provides several C-code examples based on the Altera SoC Linux built by Yocto
project. These examples demonstrates major features connected to HPS interface on DE10-Standard
board such as users LED/KEY, I2C interfaced G-sensor, and I2C MUX. All the associated files can
be found in the directory Demonstrations
/SOC
of the DE10_Standard System CD. Please refer to
Chapter
5
"
Running
Linux
on
the
DE10-Standard
board
"
from
the
DE10-Standard_Getting_Started_Guide.pdf
to run Linux on DE10_Standard board.
Installation of the Demonstrations
To install the demonstrations on the host computer:
Copy the directory
Demonstrations
into a local directory of your choice.
Intel SoC EDS v16.1 is
required for users to compile the c-code project.
6
6
.
.
1
1
H
H
e
e
l
l
l
l
o
o
P
P
r
r
o
o
g
g
r
r
a
a
m
m
This demonstration shows how to develop first HPS program with Altera SoC EDS tool. Please
refer to My_First_HPS.pdf from the system CD for more details.
The major procedures to develop and build HPS project are:
Install Intel FPGA SoC EDS on the host PC.
Create program .c/.h files with a generic text editor
Create a "Makefile" with a generic text editor
Build the project under Altera SoC EDS
Program File
The main program for the Hello World demonstration is: