Restoring the flash device to the factory settings, Restoring the flash, Fer to – Altera Arria V GX User Manual

Page 48: Restoring the

Advertising
background image

A–4

Appendix A: Programming the Flash Memory Device

Restoring the Flash Device to the Factory Settings

Arria V GX Starter Kit

November 2014

Altera Corporation

User Guide

Programming the board is now complete.

f

For more information about the nios2-flash-programmer utility, refer to the

Nios II

Flash Programmer User Guide

.

Restoring the Flash Device to the Factory Settings

This section describes how to restore the original factory contents to the flash memory
device on the starter board. Make sure you have the Nios II EDS installed, and
perform the following instructions:

1. Set the board switches to the factory default settings described in

“Factory Default

Switch Settings” on page 4–2

.

2. Launch the Quartus II Programmer to configure the FPGA with a .sof capable of

flash programming. Refer to

“Configuring the FPGA Using the Quartus II

Programmer” on page 6–21

for more information.

3. Click Add File and select <install

dir>\kits\arriaVGX_5agxfb3hf35_start\factory_recovery\a5gx_starter_fpga_bu
p_top.sof

.

4. Turn on the Program/Configure option for the added file.

5. Click Start to download the selected configuration file to the FPGA. Configuration

is complete when the progress bar reaches 100%. The Config Done LED (D12)
illuminates indicating that the flash device is ready for programming.

6. On the Windows Start menu, click All Programs > Altera > Nios II EDS > Nios II

Command Shell

.

7. In the Nios II command shell, navigate to the <install

dir>\kits\arriaVGX_5agxfb3hf35_start\factory_recovery directory and type the
following command to run the restore script:

./restore.sh

r

Restoring the flash memory might take several minutes. Follow any instructions
that appear in the Nios II command shell.

8. After all flash programming completes, cycle the POWER switch (SW5) off then

on.

9. Using the Quartus II Programmer, click Add File and select <install

dir>\kits\arriaVGX_5agxfb3hf35_start\factory_recovery\a5gx_starter_fpga_bu
p_top.sof

.

10. Turn on the Program/Configure option for the added file.

11. Click Start to download the selected configuration file to the FPGA. Configuration

is complete when the progress bar reaches 100%. The Config Done LED (D12)
illuminates indicating that the flash device is ready for programming.

12. Cycle the POWER switch (SW5) off then on to load and run the restored factory

design.

13. The restore script cannot restore the board’s MAC address automatically. In the

Nios II command shell, type the following Nios II EDS command:

Advertising