This version (16 Feb 2021 22:27) was approved by Dragos Bogdan.The Previously approved version (02 Oct 2019 13:45) is available.Diff
  • Open Nios II (Quartus Prime) and provide the workspace location.
  • Create a new Application Project: go to File → New → Nios II Application and BSP from Template

Creating a new application project

  • Add a new Hardware Platform: click from the Target Hardware information section.

Creating a new hardware platform

Config HW 2

  • Give a name to the project and select the Blank Project template and click Finish

Config new project

  • The new Blank project should look like:

Blank project

  • Create a new folder called src under sw folder

New folder

  • Copy all the source code files into the src directory.
  • The SDK should automatically build the projects and the Console window will display the result of the build. If the build is not done automatically select the Project → Build Automatically menu option.
  • At this point the software project setup is complete, the FPGA can be programmed and the software can be downloaded into the system.
  • You can program the FPGA by opening Programmer (Quartus Prime) provided by the Quartus Prime Software Suite. Click the Auto Detect button. The detected devices should be displayed now in the device list.


  • Double-click the first device under the File column and browser for the .sof file required for the project. Make sure the Program/Configure column is checked. Press the Start button to program the FPGA.

Empty application project

  • After the FPGA was programmed, we need to create a new Run configuration in the Nios II project, by selecting RunRun Configurations…, in the Run Configuration windows select the Nios II Hardware and click at the New Configuration button at the upper left corner.

Create new run configuration

  • At the Project tab define your current project name and application executable. (.elf)
  • On the Target Connection tab, press the Refresh Connections button. You may need to expand the window or scroll to the right to see this button.
  • Check the Ignore mismatched system ID option.
  • Check the Ignore mismatched system timestamp option.
  • The output of the example program can be viewed in the Console Window.
  • When the run configuration is done, the software can be started by clicking the Run button.
  • Your new bare metal application should run
resources/fpga/altera/software_setup.txt · Last modified: 02 Oct 2019 14:08 by Antoniu Miclaus