Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

6.2.1.1.2. Project Templates

The Nios® II Software Build Tools for Eclipse help you to create a simple, small, and pretested software project to test a new board.

The Nios® II Software Build Tools for Eclipse provide a mechanism to create new software projects using project templates. To create a simple test program to test a new board, perform the following steps:

  1. In the Nios® II perspective, on the File menu, point to New, and click Nios® II Application and BSP from Template.

    The New Project wizard for Nios® II C/C++ application projects appears.

  2. Specify the Platform Designer information (.sopcinfo) file for your design. The folder in which this file is located is your project directory.
  3. If your hardware design contains multiple Nios® II processors, in the CPU list, click the processor you wish to run this application software.
  4. Specify a project name.
  5. In the Templates list, click Hello World Small.
  6. Click Next.
  7. Click Finish.

The Hello World Small template is a very simple, small application. Using a simple, small application minimizes the number of potential failures that can occur as you bring up a new piece of hardware.

To create a new project for which you already have source code, perform the preceding steps with the following exceptions:

  • In step 5, click Blank Project.
  • After you perform step 7, perform the following steps:
    1. Create the new directory <your_project_directory>/software/<project_name>/source, where <project_name> is the project name you specified in step 4.
    2. Copy your source code files to the new project by copying them to the new <your_project_directory>/software/<project_name>/source directory.
    3. In the Project Explorer tab, right-click your application project name, and click Refresh. The new source folder appears under your application project name.