i
CONTENTS
CONTENTSCONTENTS
CONTENTS
CHAPTER 1 INTRODUCTION ...................................................................................................... 1
1.1
S
OFTWARE
D
EVELOPMENT
F
LOW
................................................................................................ 1
1.2
S
YSTEM
R
EQUIREMENTS
............................................................................................................. 2
1.3
W
HAT
Y
OU
W
ILL
L
EARN
............................................................................................................. 2
CHAPTER 2 CREATE AND BUILD YOUR PROJECT .............................................................. 3
2.1
C
REATING A
P
ROJECT
F
OLDER
..................................................................................................... 3
2.2
C
REATING A
D
ESIGN
F
ILE
............................................................................................................ 3
2.3
C
REATING THE
M
AKEFILE
........................................................................................................... 4
2.4
C
OMPILING THE
P
ROJECT
............................................................................................................ 5
CHAPTER 3 EXECUTING YOUR PROJECT ............................................................................. 7
3.1
E
XECUTE
Y
OUR
E
XECUTABLE
F
ILE
............................................................................................. 7
3.2
P
UTTING MY
_
FIRST
_
HPS INTO THE BOOTABLE
SD
CARD
............................................................. 7
CHAPTER 4 APPENDIX ............................................................................................................... 11
4.1
H
EADQUARTER
&
B
RANCHES
.................................................................................................... 11
1
Chapter 1
Chapter 1Chapter 1
Chapter 1
Introduction
IntroductionIntroduction
Introduction
This tutorial provides comprehensive information that will help you understand how to create a C-
language software design and run it on your ARM-included DE1-SoC development board. The
following sections provide a quick overview of the design flow, explain what you need to get
started, and describe what you will learn.
1
1
.
.
1
1
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
D
D
e
e
v
v
e
e
l
l
o
o
p
p
m
m
e
e
n
n
t
t
F
F
l
l
o
o
w
w
Figure 1-1 shows the software design flow block diagram. The development procedures are:
1. Developers need to design their C-code software project with a generic text editor.
Generally, .c and .h files are needed.
2. Create a “Makefile” for your software design project, so the compiler knows how to
generate a final object/executable files for your project.
3. Use the compile tool to generate executable file
4. Boot Linux from your DE1-SoC board.
5. Download the executable file to Linux and launch it.
Figure 1-1 Design Flow
2
1
1
.
.
2
2
S
S
y
y
s
s
t
t
e
e
m
m
R
R
e
e
q
q
u
u
i
i
r
r
e
e
m
m
e
e
n
n
t
t
s
s
Besides the DE1-SoC board, the following software and hardware are required:
Microsoft Windows computer with USB port and Ethernet Port
Ethernet Router
Altera SoC EDS(Embedded Design Suite) software tool installed
Generic text editor tool installed
PuTTY installed
FTDI Virtual COM driver installed
A bootable SD card with the Linux system
1
1
.
.
3
3
W
W
h
h
a
a
t
t
Y
Y
o
o
u
u
W
W
i
i
l
l
l
l
L
L
e
e
a
a
r
r
n
n
In this tutorial you will perform the following tasks:
Create a "Hello World!" design that displays a message on the Linux terminal—This design is
easy to create and gives you visual feedback that the design works. Of course, you can use
your DE1-SoC board to run other designs as well.
Become familiar with Altera SoC EDS and Linux—This tutorial will not make you an expert,
but you should grasp some basic concepts about the compile tool and Linux operation in the
end of this tutorial.