Nios® V Processor Software Developer Handbook

ID 743810
Date 4/01/2024
Public
Document Table of Contents

2.2.1.3. niosv-download

Usage

niosv-download [OPTIONS] [ELF_FILE.elf]

Description

The niosv-download utility is used to download the Nios® V processor application (.elf) file to the program memory. The processor is left in a halted state by default.

Table 7.  Use Cases
Use case Example
Download .elf file to the only Nios® V processor instance niosv-download ELF_file.elf
Download .elf file to the only Nios® V processor instance, and run from entry point niosv-download -g ELF_file.elf
Download .elf file to the Nios® V processor which is located at cable 1, device 2 and instance 2 niosv-download ELF_file.elf -c 1 -d 2 -i 2
Issue debug reset for Nios® V processor niosv-download -r
Download app.elf to the only Nios® V processor instance, issue a debug reset, then run from the entry point. niosv-download -g -r app.elf
Table 8.  Basic Options
Options Description
-g, --go Run processor from entry point after downloading.
-c <cable number>, --cable=<cable number> To select the cable number that the device is connected.
-d <device number>, --device=<device number> To select the device.
-i <instance number>, --instance=<instance number> To select the instance.
-r, --reset Reset Nios® V processor target
<ELF_file.elf> Specify the .elf file to download to Nios® V processor.