User guide

20 Altera Corporation
EPXA1 Development Kit Getting Started User Guide Getting Started
6. Choose Assembler from the Software Build Settings list and specify
the following:
Additional include directories: type .
Generate debug information: turn on
Keep local symbols in symbol table: turn on
Use C preprocessor: turn on
7. Choose Linker from the Software Build Settings list and specify the
following:
Object/library modules: type
%ALTERA_ARM9GP_ROOT%/%ALTERA_ARM9GP_VER%/%ALTER
A_ARM9GP_HOST%/lib/gcc-lib/arm-elf/2.96-
%ALTERA_ARM9GP_VER%/crtbegin.o,
%ALTERA_ARM9GP_ROOT%/%ALTERA_ARM9GP_VER%/%ALTER
A_ARM9GP_HOST%/lib/gcc-lib/arm-elf/2.96-
%ALTERA_ARM9GP_VER%/crtend.o
Additional library directories: type
%ALTERA_ARM9GP_ROOT%/%ALTERA_ARM9GP_VER%/%ALTERA_A
RM9GP_HOST%/lib/gcc-lib/arm-elf/2.96-
%ALTERA_ARM9GP_VER%,
%ALTERA_ARM9GP_ROOT%/%ALTERA_ARM9GP_VER%/%ALTER
A_ARM9GP_HOST%/arm-elf/lib
–Under Link type: select Custom link script and browse to
software\armelf.x
Command-line options: add -lc -lgcc -lc
1 The crtbegin and crtend files set up the environment and
clean up for the C run-time libraries.
The linker script file implements the functions required for
the standard library calls this program uses.
8. Click OK.
9. Click on Start Software Build (Processing menu) to build the
software application and create a flash programming file.
1 As an alternative to using the Quartus II software to build the
software application, you can run the provided makefile by
typing make debug at a DOS prompt in the gnu directory.