AN 1011: TinyML Applications in Altera FPGAs Using LiteRT for Microcontrollers
ID
848984
Date
4/07/2025
Public
Visible to Intel only — GUID: jrj1740018954427
Ixiasoft
3.2.1. Creating a Board Support Package
Board Support Package (BSP) provides a software runtime environment for embedded systems, such as Nios® V/m processor systems. Platform Designer includes the BSP Editor tool to generate and configure BSP content.
Follow these steps to create a BSP:
- In the Quartus® Prime software, go to Tools > Platform Designer .
- In the Platform Designer window, go to File > New BSP.
- The Create New BSP window appears.
- For BSP setting file, create a BSP file (settings.bsp) in <Working directory>/software/bsp/settings.bsp.
- For System file (qsys or sopcinfo), select the Nios® V/m processor Platform Designer system (niosv_top.qsys).
- For Quartus project, select the example design Quartus® Prime Project File (niosv_top.qpf).
- For Revision, select niosv_top.
- For CPU name, select intel_niosv_m_0.
- Select the Operating system as Altera HAL.
- Click Create to create the BSP file.
Figure 12. Create New BSP Window
- The BSP Editor tab appears.
- Modify the GNU compiler flags as follows:
Table 4. GNU Compiler Flags Modification BSP Settings Values cflags_user_flags -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions cflags_defined_symbols -DTF_LITE_STATIC_MEMORY cxx_flags -std=c++11 link_flags -Wl,--gc-sections cflags_optimization -O3 - Click Generate BSP to generate the BSP file.
- The BSP Editor generates the BSP files in <Working directory>/software/bsp folder.
Figure 13. Generated BSP Files