Appendix A: Programming the Flash Memory Device
Programming Flash Memory Using the Nios II EDS
A–3
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. Set the USER_PGM switch (S8.2) to the off position to load the Board Update
Portal design from flash memory on power up.
2. Attach the USB-Blaster 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 CONF DONE LED (D2) 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–19 for more information.
5. Click Add File and select <install
dir> \kits\cycloneIVGX_4cgx15_starter\factory_recovery\c4gx15_starter_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 CONF DONE LED (D2) and
the four user LEDs (D5-D8) illuminate 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\cycloneIVGX_4cgx15_starter\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=0x08000000 <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=0x08000000 <yourfile> _sw.flash r
11. Set the USER_PGM switch (S8.2) to the on position and power cycle the board, or
press the PGM_SEL button (S2) until the PGM 0 LED (D4) is on and the PGM 1
LED (D3) is off and then press the PGM_CONF button (S1) to load and run the
user hardware 1 design.
Programming the board is now complete.
f
For more information about the nios2-flash-programmer utility, refer to the Nios II
? March 2010
Altera Corporation
Cyclone IV GX Transceiver Starter Kit User Guide
相关PDF资料
DK-V5-EMBD-ML507-G-J DEV KIT V5 W/ISM & EDK JAPAN
DK-V6-EMBD-G-XP1 DEV KIT EMBEDDED VIRTEX 6
DK-VIDEO-2C70N VIDEO KIT W/CYCLONE II EP2C70N
DK-VIDEO-4SGX230N VIDEO KIT STRATIX IV EP4SGX230
DKUSB-1 KIT DEV FOR MB86065
DLD101-7 IC LED DRIVER HP CONST CURR 8DFN
DLP-2232H-PSOC5 MODULE PSOC5 USB ADAPTER FT2232H
DM163014 BOARD DEMO PICDEM4 12F629,16F630
相关代理商/技术参数
DK-START-4CGX15N/P 制造商:Altera Corporation 功能描述:KIT STARTER CYCLONE IV GX TRX PROMO
DK-START-5AGXB3N 功能描述:可编程逻辑 IC 开发工具 FPGA Development Kit For 5AGXFB3H4F35C5N RoHS:否 制造商:Altera Corporation 产品:Development Kits 类型:FPGA 工具用于评估:5CEFA7F3 接口类型: 工作电源电压:
DK-START-5AGXB3NES 功能描述:可编程逻辑 IC 开发工具 FPGA Starter Kit For 5AGXFB3H4F RoHS:否 制造商:Altera Corporation 产品:Development Kits 类型:FPGA 工具用于评估:5CEFA7F3 接口类型: 工作电源电压:
DKTA-620 功能描述:测试配件 - 其他 DUAL TYPE K THERMOCOUPLE ADAPTER RoHS:否 制造商:Tektronix 附件类型:Soft Case 颜色:Gray 设备类型:Transit Case 产品:Accessories
DKTFM3CMA6207 制造商:AVX Corporation 功能描述:
DKTGALL-KIT 功能描述:RS/USB/JTAG/HILOKITS RoHS:否 类别:套件 >> 其它 系列:- 标准包装:1 系列:- 套件类型:照明 套件包括:各类 包装:Digi-Reel® 其它名称:ZXLGMRKIT16DKR
DKTGHILOTEST-KIT 功能描述:TESTER - ADVANCED HIGH LOW RoHS:否 类别:套件 >> 其它 系列:- 标准包装:1 系列:- 套件类型:照明 套件包括:各类 包装:Digi-Reel® 其它名称:ZXLGMRKIT16DKR
DKTGJTAG-KIT 功能描述:JTAG - EXTENDED PARALLEL RoHS:否 类别:套件 >> 其它 系列:- 标准包装:1 系列:- 套件类型:照明 套件包括:各类 包装:Digi-Reel® 其它名称:ZXLGMRKIT16DKR