87
Demonstration Source Code
Build Tool: Altera SoC EDS v13.0
Project directory: \Demonstration\SoC\my_first_hps
Binary file: my_first_hps
Build Command: make ("
make clean
" to remove all temporary files)
Execute Command: ./my_first_hps
Demonstration Setup
Connect USB cable to the USB-to-UART connector (J4) on the DE1_SoC board and host PC.
Make sure the demo file "
my_first_hps
" is copied into the SD card under the "
/home/root
"
folder in Linux.
Insert the booting micro SD card into the DE1_SoC board.
Power on the DE1_SoC board.
Launch PuTTY to connect to the UART port of Putty and type "
root
" to login Altera Yocto
Linux.
In the UART terminal of PuTTY, type "
./my_first_hps
" to start the program, and you will see
"Hello World!" message in the terminal.
6
6
.
.
2
2
U
U
s
s
e
e
r
r
s
s
L
L
E
E
D
D
a
a
n
n
d
d
K
K
E
E
Y
Y
This demonstration presents how to control the users LED and KEY by accessing the register of
GPIO controller through the memory-mapped device driver. The memory-mapped device driver
allows developer to access the system physical memory.
Function Block Diagram
Figure 6-1
shows the function block diagram of this demonstration. The users LED and KEY are
Summary of Contents for DE1-SOC
Page 1: ...1...
Page 108: ...107 Figure 8 4 Select Devices Page...