Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

4.1.3.2.1. nios2-download Usage Example

To download (and run) a Nios® II .elf program:

  1. Open a Nios® II command shell.
  2. Change to the directory in which your .elf file is located. If you use the Nios® II SBT for development, the correct location is often the Debug or Release subdirectory of your top-level project. If you use the Nios® II SBT, the correct location is the app folder.
  3. In the command shell, type the following command to download and start your program:
    nios2-download -g <project name>.elf
  4. Optionally, use the nios2-terminal command to connect to view any output or provide any input to the running program.