Embedded Design Handbook

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

3.6.5.9. Run the Program on Target Hardware

To download the software executable to the target board, perform the following steps:

  1. Right-click the count_binary project, point to Run As, and then click Nios® II Hardware.
    If the Run Configurations dialog box appears, verify that Project name and ELF file name contain relevant data, then click Run.
    The Nios® II SBT for Eclipse downloads the program to the FPGA on the target board and the program starts running. When the target hardware starts running the program, the Nios® II Console view displays character I/O output. If you connected LEDs to the Nios® II system in previous section, then the LEDs blink in a binary counting pattern.
  2. Click the Terminate icon (the red square) on the tool bar of the Nios® II Console view to terminate the run session and the Nios® II SBT for Eclipse disconnects from the target hardware.
    You can edit the count_binary.c program in the Nios® II SBT for Eclipse text editor and repeat these two steps to witness your changes executing on the target board. If you rerun the program, buffered characters from the previous run session might display in the Console view before the program begins executing.