Programming flash memory using the nios ii eds – Altera 100G Development Kit, Stratix V GX Edition User Manual

Page 39

Advertising
background image

Appendix A: Programming the Flash Memory Device

A–3

Programming Flash Memory Using the Nios II EDS

August 2012

Altera Corporation

100G Development Kit, Stratix V GX Edition

User Guide

1

If you have generated a .sof that operates without a software design file, you can still
use the Board Update Portal to upload your design. In this case, leave the Software
File Name

field blank.

Programming Flash Memory Using the Nios II EDS

The Nios II EDS offers a nios2-flash-programmer utility to program the flash memory
directly. To program the .flash files or any compatible S-Record File (.srec) to the
board using nios2-flash-programmer, perform the following steps:

1. Attach the USB-Blaster cable and power up the board.

2. 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

7

. If no output appears on the

LCD or if the MAX_CONF_DN LED (D25) does not illuminate, continue to step

3

to load the FPGA with a flash-writing design.

3. 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–17

for more information.

4. Click Add File and select <install

dir>\kits\stratixVGX_5sgxea7nf45_100g\factory_recovery\s5gx100g_fpga_bup
.sof

.

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

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

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

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

Command Shell

.

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

dir>\kits\stratixVGX_5sgxea7nf45_100g\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

9. 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

10. Press the PGM_SEL button (S8) until the POF 1 LED (D34) illuminates, and then

press the LOAD (S5) to load and run the user hardware design.

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

.

Advertising