Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

3.2.1.1. niosv-bsp

Usage

niosv-bsp <FUNCTION> [OPTIONS] settings.bsp

Description

Create a BSP CMakeLists.txt that can compile the BSP library file. A toolchain.cmake file is also created, and it contains toolchain options such as C compiler, C++ compiler, and link flags to build the Nios® V processor software projects. CMakeLists.txt uses both files when generating the application project.

The default BSP Tcl scripts run unless specified otherwise during BSP creation. The scripts are available in <Intel Quartus Prime installation directory>/niosv/scripts/bsp-defaults folder.

Table 4.  Use Cases
Use Case Function Example
Quartus® Prime Pro Edition:

Creates a new settings file and generates the BSP files in the BSP directory.

-c, --create

niosv-bsp -c -s=<path to .qsys file> -t=<bsp type> [OPTIONS] settings.bsp

Quartus® Prime Standard Edition:

Creates a new settings file and generates the BSP files in the BSP directory.

-c, --create

niosv-bsp -c -s=<path to .sopcinfo file> -t=<bsp type> [OPTIONS] settings.bsp

Updates the existing settings file and generates the BSP files in the BSP directory. -u, --update niosv-bsp -u [OPTIONS] settings.bsp
Generates the BSP files in the BSP directory according to the existing settings file. -g, --generate niosv-bsp -g [OPTIONS] settings.bsp
Queries the BSP settings file. Requires extra options to query individual BSP settings. -q, --query niosv-bsp -q -E=<exported tcl script name>

[OPTIONS] settings.bsp

Table 5.  Basic Options
Options Description
-p, --quartus-project=<path to .qpf file>

The Quartus® Prime Project File.

-s, --qsys=<path to .qsys file>

The Platform Designer.

-b, --bsp-dir=<bsp directory>
  • The BSP directory.
  • If not specified, this option is the current directory which stores the settings file.
-t, --type=<bsp type>
  • The type of BSP to create. For example – hal, ucosii, or freertos.
  • Use this option when you are using -c, --create function, and the BSP type names are case-insensitive.
-E, --export-as-tcl=<exported tcl script name>

The exported Tcl script file name based on the queried BSP project.