Nios® V Processor Software Developer Handbook

ID 743810
Date 10/31/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.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
Creates a new settings file and generate the BSP files in the BSP directory. -c, --create

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

Updates the existing settings file and generate 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 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 or ucosii. This option is required when 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.