AN 978: Nios® V Processor Migration Guidelines

ID 773196
Date 5/15/2024
Public
Document Table of Contents

5.1.4.2.1. Command-Line Build Flow

Similar with Nios II Software Build Tools, you can create the Nios® V processor software project with Nios V Command Shell and Ashling* RiscFree* IDE for Intel® FPGAs.
Table 24.  CLI Build Flow Comparison
Flow Nios® V Processor Nios® II Processor
Invoke BSP Editor GUI niosv-bsp-editor (for Quartus® Prime Standard Edition only) nios2-bsp-editor
Invoke Command Shell niosv-shell
  • In the Windows operating system, on the Start menu, point to Programs > Intel FPGA > Nios II EDS <version>,and click Nios II <version> Command Shell :.
  • In the Linux operating system, in a command shell, change directories to <Nios II EDS install path>, and type the command nios2_command_shell.sh.
Create a BSP niosv-bsp -c –p=<path to .qpf file> -s=<path to .qsys file> -t=<bsp type> [OPTIONS] settings.bsp nios2-bsp <bsp type> <bsp-dir> [<sopc>] [<override>]
Generate a BSP niosv-bsp –g [OPTIONS] settings.bsp
Update a BSP niosv-bsp –u [OPTIONS] settings.bsp
Examine a BSP niosv-bsp –q –E=<script name> [OPTIONS] settings.bsp nios2-bsp-query-settings --settings settings.bsp
Create an APP niosv-app -b=<bsp directory>-s=<source files directory> [OPTIONS] nios2-app-generate-makefile --bsp-dir <bsp directory> --src-file <source files directory> [<OPTIONS>]
Build an App cmake -B <build directory> -S <app directory> -G “Unix Makefiles”

make –C <build directory>

make
Download an ELF niosv-download <filename.elf> nios2-download <filename.elf>
Run an ELF niosv-download –g -r nios2-download –g -r
Open JTAG UART Terminal juart-terminal nios2-terminal