Embedded Design Handbook

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

3.6.5.8.1. Create a New Nios® II Application and BSP from Template

To create new Nios® II C/C++ application and BSP projects, perform the following steps:

  1. Start the Nios® II SBT for Eclipse. On Windows computers, click Start, point to Programs, Nios® II EDS <version>, and then click Nios® II <version> Software Build Tools for Eclipse. On Linux computers, run the executable file < Nios® II EDS install path>/bin/eclipse-nios2.
  2. If the Workspace Launcher dialog box appears, click OK to accept the default workspace location.
  3. On the Window menu, point to Open Perspective, and then either click Nios® II , or click Other and then click Nios® II to ensure you are using the Nios® II perspective.
  4. On the File menu, point to New, and then click Nios® II Application and BSP from Template.
    The Nios II Application and BSP from Template wizard appears.
  5. Under Target hardware information, next to SOPC Information File name, browse to locate the <design files directory>.
  6. Select first_nios2_system.sopcinfo and click Open.
    Nios II Application and BSP from Template wizard shows the current information for the SOPC Information File name and CPU name fields.
  7. In the Project name box, type count_binary.
  8. In the Templates list, select Count Binary
  9. Click Finish.
The Nios® II SBT for Eclipse creates and displays the following new projects in the Project Explorer view, typically on the left side of the window:
  • count_binary—Your C/C++ application project
  • count_binary_bsp—A board support package that encapsulates the details of the Nios® II system hardware