Wiki

This version is outdated by a newer approved version.DiffThis version (02 Oct 2019 13:49) was approved by Antoniu Miclaus.

This is an old revision of the document!


  • 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.

Programmer

  • 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)
  • The output of the example program can be viewed in the SDK console.
  • 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.1570016758.txt.gz · Last modified: 02 Oct 2019 13:45 by Antoniu Miclaus