AN 985: Nios® V Processor Tutorial

ID 784468
Date 8/28/2025
Public
Document Table of Contents

3.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.
To launch the BSP Editor, follow these steps:
  1. Enter the Nios® V Command Shell.
  2. Invoke the BSP Editor with niosv-bsp-editor command.
  3. In the BSP Editor, click File > New BSP to start your BSP project.
    Figure 121. Create New BSP Window
  4. Configure the following settings:
    • SOPC Information File name: niosv_top.sopcinfo
    • CPU name: intel_niosv_m_0
    • Operating system: Altera HAL
    • Version: Leave as default.
    • BSP target directory: <Working directory>/software/hal_bsp
    • BSP Settings File name: <Working directory>/software/hal_bsp/settings.bsp
    • Additional Tcl scripts: Provide a BSP Tcl script by enabling Enable Additional Tcl script.
    Figure 122. Configure New BSP
  5. Click OK.
  6. You do not need to modify further. This example design uses the default BSP settings.
  7. Click Generate BSP to generate the BSP file.
  8. Click Exit when the BSP is generated successfully.
    Figure 123. BSP Editor Tab
  9. The BSP Editor generates the BSP files in <Working directory>/software/hal_bsp. 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  -s=niosv_top.sopcinfo -t=hal 
      <Working directory>/software/hal_bsp/settings.bsp
    Figure 124. Generated BSP Files