User guide
Creating Projects
C/C++ application. See <Nios II EDS install
path>/examples/verilog/niosII_cycloneII_2c35/standard/software_exa
mples/app/hello_world for an example.
Nios II board support package (BSP). See <Nios II EDS install
path>/examples/verilog/niosII_cycloneII_2c35/standard/software_exa
mples/bsp/hal_default for an example.
supporting source code (such as the gnu tools library). See <Nios II EDS install
path>/bin/nios2-gnutools for an example.
To import each Nios II command line project into the Nios II IDE as a user-managed
makefile project, follow these steps:
1. Copy the item's directory to the host file system.
2. In the Nios II IDE, on the File menu, click Import. The Import wizard appears.
3. In the Select an import source list, expand Altera Nios II.
4. Select Existing Nios II software build tools project or folder into
workspace.
5. Click Next. The Import Project From File System page appears.
6. Click Browse and locate the import directory.
7. Click OK. The importer automatically classifies the import content based on the
following criteria.
Directories containing a Makefile and no .bsp file are C/C++ applications.
Directories containing a Makefile and a .bsp file are Nios II BSPs.
Directories containing no Makefile aresupporting source code.
8. Click Finish. The Nios II IDE adds the project to the list of available projects in the
Nios II C/C++ Projects view. The IDE treats the project as a Nios II user-makefile
C/C++ application project type.
Imported C/C++ applications become user-managed (standard Eclipse) make projects in
the IDE. You can edit, build, run and debug these C/C++ applications just like you would
other Nios II user-makefile C/C++ application projects. However, imported BSP and other
supporting source code projects are not directly buildable. You import BSP and supporting
source code only to be available for viewing in the IDE debugger and C/C++ search.
There is no IDE-managed association between the imported C/C++ application and the
BSP (like there is between Nios II C/C++ application projects and Nios II system library
projects). The C/C++ application's makefile associates the application and the BSP.
Note: The import process does not require you to specify all the information that the
debugger requires. At debug time, the IDE might prompt you to specify an SOPC
Builder system file (.ptf). The associated .ptf file for each Altera example is three
levels up in the directory tree from the location of the project.
Related Nios II IDE Help Topics
About Nios II IDE Projects
Related Eclipse and CDT Help Topics
Workbench User Guide > Reference > Import Wizard
Workbench User Guide > Concepts > Team Programming with CVS
43