User guide
Nios II IDE Help System
the new project, use the Blank Project template. You must manually insert at
least one C file before building the project.
6. If you want the Nios II IDE to create a default associated system library for you,
skip to step 9.
7. Click Next. The next page of the wizard appears, showing options for an
associated Nios II system library project.
8. Specify how you want to associate the Nios II C/C++ application project to a
Nios II system library by doing one of the following.
Click Create a new system library named: <application project
name>_syslib. This option creates a default HAL Nios II system library
project to accompany your Nios II C/C++ application project. This option
is usually desirable for single-threaded Nios II programs.
Click Select or create a system librarySelect a Board Support
Package, then either select an existing system library in the Available
System Library Projects list, or click New System Library Project... to
access the New Nios II system library Project wizard. Select a System
Library that is compatible with the target hardware.
Note: Multiple Nios II C/C++ application projects can depend on the
same system library. This can be desirable, for example, if the system
library includes a large operating system that takes effort to configure
once, and you rarely configure it again.
9. Click Finish. The Nios II IDE creates new directories for your Nios II C/C++
application project and Nios II system library project. The IDE copies the template
source files into the project directories, and adds your projects to the list of
available projects in the Nios II C/C++ Projects view.
To create a Nios II system library project:
Follow these steps using the System Library page of the New Project wizard.
1. Type a meaningful valid project name in the Name box.
2. Specify a location for the Nios II system library project by doing one of the
following.
Turn off Specify Location. The Nios II IDE creates the new project
directory in the default location specified in the New Projects preference
page. The name of the project directory is the project name.
Note: After installing the Nios II IDE, the default location is the
<SOPC Builder system path>/software directory. Altera
recommends using this location because it keeps software files in
proximity to the system hardware files. This can help when sharing
project files with other people.
Turn on Specify Location and specify an alternative project location in
the Location box. You can click the Browse... button immediately
adjacent to the Location box to browse the file system.
3. Specify the SOPC Builder system file (.ptf) that describes your target hardware in
SOPC Builder System. The SOPC Builder system file (.ptf) defines the
processors and peripherals included in the SOPC Builder system. You can click the
Browse... button next to the SOPC Builder System list to browse the file system
for a .ptf file. Previously used systems appear in the drop-down list.
38