
HAN Pilot Platform
Demonstration Manual
67
www.terasic.com
September 6, 2019
Main Program
In the main program, the LED is controlled to perform LED light shifting operation as shown in
. When finishing 60 times of shift cycle, the program will be terminated.
Figure 4-7 C Program for LED Shift Operation
Makefile and compile
shows the content of Makefile for this C project. The program includes the head files
provided by SoC EDS. In the Makefile, ARM-linux cross-compile also be specified.
Figure 4-8 Makefile content
To compile the project, type “make” in the command shell as shown in
. Then, type “ls”
to check the generated ARM execution file “hps_fpga_led”.