User guide

Tutorials
Note: If Start is not enabled, click Hardware Setup to configure your Altera
download cable.
8. Close or minimize the Quartus II Programmer and return to the Nios II IDE.
Note: If you are targeting a board other than the Nios development board, you need
to configure the Quartus II programmer differently, as specified by the board designer.
You can save the Quartus II configuration settings to a chain descriptor file (.cdf),
eliminating the need to configure the Quartus II programmer every time you configure
the device.
The board is now configured, and ready to run the project's executable code.
To run the project:
You can run your project on your target hardware, or on the ISS.
Running on Hardware
After configuring the target hardware, perform these steps to download and run the
executable code:
1. Right-click the tutorial project in the Nios II C/C++ Projects view.
2. Point to Run As, and then click
Nios II Hardware. After a moment, the
board's LEDs, seven-segment display, and LCD screen count from 0x00 to 0xff,
pause, and then repeat.
The Console view in the IDE also displays the following:
**************************
* Hello from Nios II! *
* Counting from 00 to ff *
**************************
00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0a, 0b, 0c, 0d, 0e, 0f,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1a, 1b, 1c, 1d, 1e, 1f,
Congratulations! The program is running on your development board.
Note: If nothing displays on the LCD screen, disconnect the CompactFlash card, and
repeat the steps. The CompactFlash and LCD screen share lines on the Nios
development board, sometimes causing conflicts.
When targeting Nios II hardware, the Run As command does the following:
1. Creates a default run/debug configuration for the target board.
Note: This step usually completes automatically without user intervention. If it
cannot (the most common cause is that you have multiple JTAG download
cables installed), the IDE displays an error message, and you must manually
set up a run configuration.
2. Builds the project. If the project is not up-to-date, then the IDE builds it first to
generate an up-to-date executable file.
15