AN 717: Nios II Gen2 Hardware Development Tutorial

ID 683615
Date 9/22/2014
Public
Document Table of Contents

1.5.8.1. Create a New Application and BSP from Template

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

  1. Start the SBT for Eclipse. On Windows computers, click Start, point to Programs, EDS <version>, and then click <version> Software Build Tools for Eclipse. On Linux computers, run the executable file < 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 , or click Other and then click to ensure you are using the perspective.
  4. On the File menu, point to New, and then click 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 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 system hardware