Board Diagnostic

This example program provides a way to test most of the devices on an Altera®-provided development board. The following are tested:

  • Seven-segment display
  • D0 to D7 LEDs: The "walking" LED pattern is displayed on these LEDs
  • UART test: Tests UART functionality for the UART defined as STDOUT
  • LCD display: Displays a short message on the LCD display
  • Memory: Runs memory tests on a user-specified range of memory
  • Buttons (SW0 to SW3): Detects button presses in a tight loop and returns any non-zero value

Using This Design Example

To obtain this design example, download a free evaluation version of the Nios® II Embedded Design Suite (EDS). This embedded software example is installed with the Nios II EDS in the <Nios II EDS installation path>/examples/software directory and is available as a Nios II integrated development environment (IDE) project template. The template includes the project settings required to run this design on the supported target hardware configurations. To use this software example, simply create a new C/C++ application project in the IDE and choose the desired project template.

The use of this design is governed by, and subject to, the terms and conditions of the Altera Hardware Reference Design License Agreement.

Hardware Requirements

This example requires the following devices to be present in the target hardware design:

  • LED programmable I/O (PIO) named led_pio
  • Seven-segment display PIO named seven_seg_pio
  • LCD display named lcd_display
  • Button PIO named button_pio
  • JTAG connection (to test the JTAG UART functionality)

You can run this software design example on the following Nios II hardware design examples:

Stratix® and Stratix II Design Examples

  • Standard
  • Full-featured

Cyclone® Design Examples

  • Standard
  • Full-featured
  • Low cost

Related Links

For more information about using this example in your project, go to:


Design Examples Disclaimer

These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is” basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera.