Visible to Intel only — GUID: iga1447433532841
Ixiasoft
Visible to Intel only — GUID: iga1447433532841
Ixiasoft
4.2.2.4.1. Software Example Designs
The best way to become acquainted with the Nios® II Software Build Tools flow and begin developing software for the Nios® II processor is to use one of the pre-existing software example designs that are provided with the Nios® II EDS. The software example designs are preconfigured software applications that you can use as the basis for your own software development. The software examples can be found in the Nios® II installation directory.
For more information about the software example designs provided in the Nios II EDS, refer to “ Nios® II Embedded Design Examples” in the Overview of Nios® II Embedded Development chapter of the Nios® II Gen2 Software Developer’s Handbook.
To use a software example design, follow these steps:
- Set up a working directory that contains your system hardware, including the system .sopcinfo file.
Note: Ensure that you have compiled the system hardware with the Intel® Quartus® Prime software to create up-to-date .sof and .sopcinfo files.
- Start the Nios® II Software Build Tools for Eclipse as follows:
- In the Windows operating system, on the Start menu, point to Programs > Nios® II EDS <version>, and click Nios® II <version> Software Build Tools for Eclipse.
- In the Linux operating system, in a command shell, type eclipse-nios2.
- Right-click anywhere in the Project Explorer view, point to New and click Nios® II Application and BSP from Template.
- Select an appropriate software example from the Templates list.
Note: You must ensure that your system hardware satisfies the requirements for the software example design listed under Template description. If you use an Intel Nios® II development kit, the software example designs supplied with the kit are guaranteed to work with the hardware examples included with the kit.
- Next to Information File Name, browse to your working directory and select the .sopcinfo file associated with your system.
- In a multiprocessor design, you must select the processor on which to run the software project.
Note: If your design contains a single Nios® II processor, the processor name is automatically filled in.
- Fill in the project name.
- Click Next.
- Select Create a new BSP project based on the application project template.
- Click Finish. The Nios® II Software Build Tools generate an Intel HAL BSP for you.
If you do not want the Software Build Tools for Eclipse to automatically create a BSP for you, at Step 9, select Select an existing BSP project from your workspace. You then have several options:
- You can import a pre-existing BSP by clicking Import.
- You can create a HAL or MicroC/OS-II BSP as follows:
- Click Create. The Nios® II Board Support Package dialog box appears.
- Next to Operating System, select either HAL or Micrium MicroC/OS-II.
You can select the operating system only at the time you create the BSP. To change operating systems, you must create a new BSP.