Nios® V Embedded Processor Design Handbook

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

8.2.6.2. Software Development Flow

Creating the example design software image for the custom instruction example design consist of the following general steps:
  1. Creating a board support package (BSP) project with niosv-bsp.
  2. Creating a Nios® V processor application project with the provided software design files with niosv-app.
  3. Building the application project with CMake and Make.

After launching the Nios V Command Shell, run the following commands.

$ niosv-bsp -c --quartus-project=hw/<Project Name>.qpf \
--qsys=hw/<System Name>.qsys --type=hal sw/bsp/settings.bsp
$ niosv-app --bsp-dir=sw/bsp --app-dir=sw/app \
--srcs=sw/app/custom_instr_app.c
$ cmake -S ./sw/app -G "Unix Makefiles" -B sw/app/build
$ make -C sw/app/build