Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

4.4.1. Creating a BSP with a Script

A simple method for creating a BSP is to use the nios2-bsp script as in the following example:

nios2-bsp ucosii . ../SOPC/ 
nios2-bsp lwhal . ../user/data/FastNetProject/FastNetHW/ 
make 
Table 14.  Description of nios2-bsp Arguments
Argument Purpose Further Information

ucosii

Sets the operating system to MicroC/OS-II

For more information, refer to “Settings Managed by the Software Build Tools”.

. Specifies the directory in which the BSP is to be created
../SOPC/ Points to the location of the hardware project which consist of the .sopcinfo file

The nios2-bsp script uses the .sopcinfo file to create the BSP files. You can override default settings chosen by nios2-bsp by supplying command-line arguments, Tcl scripts, or both.

Figure 13. nios2-bsp Command Flow