Nios® V Processor Software Developer Handbook

ID 743810
Date 2/14/2023
Public

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

Document Table of Contents

4.3. Details of BSP Creation

The niosv-bsp --create utility creates a new BSP settings file and generates the BSP files. It places all source files in your BSP directory. It copies some files from the Intel® Quartus® Prime installation directory. Others, such as system.h, toolchain.cmake and CMakeLists.txt, it generates dynamically.

The BSP Editor manages copied files slightly differently from generated files. If a copied file (such as a HAL source file) already exists, the tools check the file timestamp against the timestamp of the file in the Intel® Quartus® Prime installation directory. The tools do not replace the BSP file unless it differs from the distribution file. The tools normally overwrite generated files, such as the system.h, toolchain.cmake and CMakeLists.txt, and linker.x, unless you have disabled generation of the individual file with the BSP Enable File Generation tab in the BSP Editor.

Note: Avoid modifying BSP files. Use BSP settings, or custom device drivers or software packages from the BSP Editor, to customize your BSP. Manual modification (without using the BSP Editor) to the BSP files are destroyed upon BSP regeneration.
Figure 6. BSP Creation using niosv-bsp --create