User guide

Appendix A: Programming the Flash Memory Device A–3
Restoring the Flash Device to the Factory Settings
December 2014 Altera Corporation Stratix V GX FPGA Development Kit
User Guide
1. Set the DIP switch SW5.3 to the off position (factory design) to load the Board
Update Portal design from flash memory on power up.
2. Attach the USB cable and power up the board.
3. If the board has powered up and the LCD displays either Connecting... or a valid IP
address (such as 152.198.231.75), proceed to step 8. If no output appears on the
LCD or if the Config Done LED (D17) does not illuminate, continue to step 4 to
load the FPGA with a flash-writing design.
4. 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–25 for more information.
5. Click Add File and select <install
dir>\kits\stratixVGX_5sgxea7kf40_fpga\factory_recovery\s5gxea7_fpga_bup.s
of.
6. Turn on the Program/Configure option for the added file.
7. Click Start to download the selected configuration file to the FPGA. Configuration
is complete when the progress bar reaches 100%. The Config Done LED (D17)
illuminates indicating that the flash device is ready for programming.
8. On the Windows Start menu, click All Programs > Altera > Nios II EDS > Nios II
Command Shell.
9. In the Nios II command shell, navigate to the <install
dir>\kits\stratixVGX_5sgxea7kf40_fpga\factory_recovery directory (or to the
directory of the .flash files you created in “Creating Flash Files Using the Nios II
EDS” on page A–2) and type the following Nios II EDS command:
nios2-flash-programmer --base=0x0 <yourfile>_hw.flash r
10. After programming completes, if you have a software file to program, type the
following Nios II EDS command:
nios2-flash-programmer --base=0x0 <yourfile>_sw.flash r
11. Set the DIP switch SW5.3 to the on position (user design) and power cycle the
board.
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 FPGA development 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–1.
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–25 for more information.