AN 985: Nios® V Processor Tutorial

ID 784468
Date 7/24/2024
Public
Document Table of Contents

1.2.2.1. Creating a Board Support Package

Board Support Package (BSP) provides a software runtime environment for embedded systems, such as Nios® V/m processor systems. Platform Designer includes the BSP Editor tool, to generate and configure BSP contents.
  1. In the Quartus® Prime software, go to Tools > Platform Designer .
  2. In the Platform Designer window, go to File > New BSP.
  3. The Create New BSP window appears.
  4. For BSP setting file, create a BSP file (settings.bsp) in <Working directory>/software/bsp/settings.bsp.
  5. For System file (qsys or sopcinfo), select the Nios® V/m processor Platform Designer system (niosv_top.qsys).
  6. For Quartus project, select the example design Quartus Project File (niosv_top.qpf).
  7. For Revision, select niosv_top.
  8. For CPU name, select intel_niosv_m_0.
  9. For Operating system, select Altera HAL.
  10. Click Create to create the BSP file.
    Figure 67. Create New BSP window
  11. The BSP Editor tab appears.
  12. You do not need to modify further. This example design uses the default BSP settings.
  13. Click Generate BSP to generate the BSP file.
    Figure 68. BSP Editor Tab
  14. The BSP Editor generates the BSP files in <Working directory>/software/bsp folder.
    Figure 69. Generated BSP Files
    Alternatively, you can generate the BSP files using CLI.
    1. Search Nios® V Command Shell in the Start Menu and launch it.
    2. Launch the Nios® V Command Shell.
      $ niosv-shell
    3. Execute the command below to generate a BSP folder.
      $ niosv-bsp -c -p=niosv_top.qpf -s=niosv_top.qsys -t=hal <Working directory>/software/bsp/settings.bsp