1. Kit Features
2. Getting Started
3. Software Installation
4. Development Board Setup
5. Board Update Portal
6. Board Test System
7. Document Revision History for the Cyclone® V GT FPGA Development Kit User Guide
A. Programming the Flash Memory Device
B. Safety and Regulatory Compliance Information
A.5. Programming Flash Memory Using the Nios® II EDS
The Nios® II Embedded Design Suite (EDS) offers a nios2-flash-programmer utility to program the flash memory directly. To program the .flash files or any compatible .srec file to the board using nios2-flash-programmer, do the following:
- Set the SW4.3 DIP switch to the FACT ON (logic 0) to load the Board Update Portal design from flash memory on power up.
- Attach the Intel® FPGA Download Cable and power up the board.
- 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 (D7) does not illuminate, continue to step 4 to load the FPGA with a flash-writing design.
- Run the Quartus® Prime Programmer to configure the FPGA with a .sof capable of flash programming. Refer to the Restoring the MAX® V CPLD to the Factory Settings section for more information.
- Click Add File and select <install dir>\kits\cycloneVGT_5cgtfd9ef35_fpga\factory_recovery\c5gt_fpga_bup.sof.
- Turn on the Program/Configure option for the added file.
- Click Start to download the selected configuration file to the FPGA. Configuration is complete when the progress bar reaches 100%. The Config Done LED (D7) illuminates indicating that the flash device is ready for programming.
- In the Nios® II command shell, navigate to the <install dir>\kits\cycloneVGT_5cgtfd9ef35_fpga\factory_recovery directory.
You can also navigate to the directory of the .flash files you created in the Creating Flash Files Using the Nios® II EDS section.
- Type the following Nios® II EDS command:
nios2-flash-programmer --base=0x00000000 <yourfile>_hw.flash
- After programming completes, if you have a software file to program, type the following Nios® II EDS command:
nios2-flash-programmer --base=0x00000000 <yourfile>_sw.flash
- Set the SW4.3 DIP switch to the FACT OFF (logic 1) position and power cycle the board.
Programming the board is now complete.
To restore flash memory, refer to the Restoring the Flash Device to the Factory Settings section.
For more information about the nios2-flash-programmer utility, refer to the Nios® II Flash Programmer User Guide.