85
Chapter 6
Examples for HPS
SoC
This chapter provides a number of C-code examples based on the Altera SoC Linux built by Yocto
Project. These examples provide demonstrations of the major features which connected to HPS
interface on the board, such as users LED/KEY, I2C interfaced G-sensor and I2C MUX. All of the
associated files can be found in the Demonstrations
/SOC
folder in the DE1_SoC System CD.
Installation of the Demonstrations
To install the demonstrations on your computer:
Copy the directory
Demonstrations
into a local directory of your choice.
Altera SoC EDS v13.0 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 presents how to develop your first HPS program by using Altera SoC EDS tool.
For operation details, please refer to My_First_HPS.pdf in the system CD.
Here are the major procedures to develop and build HPS project.
Make sure Altera SoC EDS is installed on your PC.
Create program .c/.h files with a generic text editor
Create a "Makefile" with a generic text editor
Build your project under Altera SoC EDS
Program File
Here is the main program of this Hello World demo.
Summary of Contents for DE1-SOC
Page 1: ...1...
Page 108: ...107 Figure 8 4 Select Devices Page...