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

Document Table of Contents

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:
  1. In the Quartus® Prime software, go to Tools > Platform Designer .
  2. In the Platform Designer window, go to File > New BSP.
  3. The Create New BSP window appears.
  4. For BSP setting file, create a BSP file (settings.bsp) in <Working directory>/software/bsp/settings.bsp.
  5. For System file (qsys or sopcinfo), select the Nios® V/m processor Platform Designer system (niosv_top.qsys).
  6. For Quartus project, select the example design Quartus® Prime Project File (niosv_top.qpf).
  7. For Revision, select niosv_top.
  8. For CPU name, select intel_niosv_m_0.
  9. Select the Operating system as Altera HAL.
  10. Click Create to create the BSP file.
    Figure 12. Create New BSP Window
  11. The BSP Editor tab appears.
  12. 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
  13. Click Generate BSP to generate the BSP file.
  14. The BSP Editor generates the BSP files in <Working directory>/software/bsp folder.
Figure 13. Generated BSP Files