Nios® V Embedded Processor Design Handbook

ID 726952
Date 5/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

1.4.4. Programming Nios® V/m into the FPGA Device

To program Nios® V/m processor based system into the FPGA and to run your application, use Intel Quartus Programmer tool.

  1. To create the Nios® V/m processor inside the FPGA device, download the .sof file onto the board with the following command.
    Windows:
    quartus_pgm -c 1 -m JTAG -o p;hw/output_files/top.sof@1
    Linux:
    quartus_pgm -c 1 -m JTAG -o p\;hw/output_files/top.sof@1
    Note:
    • -c 1 is referring to cable number connected to the Host Computer.
    • @1 is referring to device index on the JTAG Chain and may differ for your board.
  2. To run the Hello World application program, reset the Nios® V/m processor system using the toggle_issp.tcl script.
    quartus_stp -t scripts/toggle_issp.tcl
  3. Download the .elf using the niosv-download command.
    niosv-download <elf file>
    Note: Set the Enable Debug option during configuration in Platform Designer to use niosv-download command.
  4. Use the JTAG UART terminal to print the stdout and stderr of the Nios® V/m processor system.
    juart-terminal
  5. The Hello World application displays as shown in the following figures.
    Figure 4. Output of the Hello World application using hello.c
    Figure 5. Output of the Hello World application using hello_ucosii.c