AN 717: Nios II Gen2 Hardware Development Tutorial

ID 683615
Date 9/22/2014
Public
Document Table of Contents

1.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 Hardware.
    If the Run Configurations dialog box appears, verify that Project name and ELF file name contain relevant data, then click Run.
    The 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 Console view displays character I/O output. If you connected LEDs to the 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 Console view to terminate the run session and the SBT for Eclipse disconnects from the target hardware.
    You can edit the count_binary.c program in the 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.