User guide
Creating Projects
Creating a New Project
To create a new project in the Nios II IDE:
1. On the File menu, point to New, and then click Project.... The New Project
wizard appears and presents a list of all project types available.
2. Expand Altera Nios II in the Wizards list. A list of the Nios II project types appears.
3. Click the desired project type.
4. Click Next.
Each of the types of projects
has a different set of wizard pages. The flow of the wizard differs,
depending on which project type you select.
To create a Nios II C/C++ application project:
Follow these steps using the Nios II C/C++ Application pages of the New Project
wizard.
1. Type a meaningful valid project name in the Name box. If you do not specify a
name, the Nios II IDE creates one for you when you select a project template in
step 5.
2. Specify a location for the Nios II C/C++ application 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 next 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. 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.
4. Select a specific processor for the project in the CPU list. If your SOPC Builder
system has only one processor, the Nios II IDE sets CPU automatically.
5. Select a project template in the Select Project Template list. As you click the
project templates, information about each template appears in the Description
and Details boxes. Each template is a collection of software files and project
settings that serve as a base for the new project. You can add your own source
code to the project later.
Note: If you do not want the Nios II IDE to copy predefined source files into
37