DE10-Standard
User Manual
90
www.terasic.com
January 19, 2017
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 a USB cable to the USB-to-UART connector (J4) on the DE10_Standard board and the
host PC.
Copy the demo file "
my_first_hps
" into a microSD card under the "
/home/root
" folder in
Linux.
Insert the booting microSD card into the DE10_Standard board.
Power on the DE10_Standard board.
Launch PuTTY and establish connection to the UART port of Putty. Type "
root
" to login Altera
Yocto Linux.
Type "
./my_first_hps
" in the UART terminal of PuTTY to start the program, and the "Hello
World!" message will be displayed 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 shows 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
connected to the
GPIO1
controller in HPS. The behavior of GPIO controller is controlled by the
register in GPIO controller. The registers can be accessed by application software through the
memory-mapped device driver, which is built into Altera SoC Linux.