AN 1000: Drive-on-Chip Design Example: Agilex™ 5 Devices

ID 826207
Date 7/08/2024
Public
Document Table of Contents

4.3. Generating and Building the NiosV/g BSP for the Drive-On-Chip Design Example

Before rebuilding the BSP, ensure that the settings.bsp file correctly generates. To generate BSP, use command line and niosv-bsp command.

The design includes an initial version of settings.bsp that contains parameters to run the design. If you modify the Platform Designer's hardware, ensure you keep the integrity of the settings.bsp file.

  1. After changing the settings.bsp file, generate the settings.bsp with the command:
    >> cd <project>/software/dniosv_subsystem
    >> make
  2. Run make to take an existing template settings.bsp file and create a new one based on it for the current project. It updates locations of project) then builds the .bsp and the drive-on-chip application.
    The app.elf file is in <project>/software/dniosv_subsystem/build/bin
  3. Compile the hardware to update the. sof file, so it contains the new binaries (hex) for memory initialization (<project>/software/dniosv_subsystem/build/bin/mem_init.
    The BSP directory, with µC/OS-II operating system has the following directory structure.
    Figure 14. BSP directory structure