Nios® V Processor Software Developer Handbook

ID 743810
Date 10/12/2024
Public
Document Table of Contents

5.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 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 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 8. BSP Creation using niosv-bsp --create