Restoring the flash device to the factory settings, Restoring the flash, To r – Altera Cyclone III LS FPGA User Manual
Page 38

A–4
Appendix A: Programming the Flash Memory Device
Restoring the Flash Device to the Factory Settings
Cyclone III LS FPGA Development Kit User Guide
© October 2009 Altera Corporation
11. Set the PGM/USER LOAD switch (SW2.6) to the off position and power cycle the
board, or press the PGM_SELECT button (S9) until the PROGRAM LED1 LED
(D30) illuminates and then press the PGM CONFIG button (S8) to load and run the
user design. Refer to
for information about the PROGRAM
LEDs.
Programming the board is now complete.
f
For more information about the nios2-flash-programmer utility, refer to th
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 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
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
for more information.
3. Click Add File and select
dir>\kits\cycloneIIILS_3cls200_fpga\factory_recovery\c3ls200_fpga_bup.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 CONF DONE LED (D14)
and the four user LEDs (D25-D28) illuminate 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
dir>\kits\cycloneIIILS_3cls200_fpga\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 (SW1) off then
on.
9. Using the Quartus II Programmer, click Add File and select
dir>\kits\cycloneIIILS_3cls200_fpga\factory_recovery\c3ls200_fpga_bup.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 CONF DONE LED (D14)
and the four user LEDs (D25-D28) illuminate indicating the flash memory device
is now restored with the factory contents.