1–34
Chapter 1: Nios II Hardware Development
Creating the Design Example
Nios II Hardware Development Tutorial
May 2011
Altera Corporation
Compile the Project
In this section you compile the project to produce an executable software image. For
the tutorial design example, you must first adjust the project settings to minimize the
memory footprint of the software, because your Nios II hardware system contains
only 20 KB of memory.
Perform the following steps:
1. In the Project Explorer view, right-click
count_binary_bsp
and click
Properties
.
The
Properties for count_binary_bsp
dialog box appears.
2. Click the
Nios II BSP Properties
page. The
Nios II BSP Properties
page contains
basic software build settings.
shows the GUI.
1
Though not needed for this tutorial, note the
BSP Editor
button in the lower
right corner of the dialog box. You use the Nios II BSP Editor to access
advanced BSP settings.
3. Adjust the following settings to reduce the size of the compiled executable:
a. Turn on
Reduced device drivers
.
b. Turn off
Support C++
.
c. Turn off
GPROF support
.
d. Turn on
Small C library
.
e. Turn off
ModelSim only, no hardware support
.
f
For more information about BSPs, refer to the
Figure 1–21. System Library Properties