A–2
Appendix A: Programming the Flash Memory Device
Preparing Design Files for Flash Programming
Preparing Design Files for Flash Programming
You can obtain designs containing prepared .flash files from the Cyclone IV GX
Transceiver Starter Kit page of the Altera website or create .flash files from your own
custom design.
The Nios II EDS sof2flash command line utility converts your Quartus II-compiled
.sof into the .flash format necessary for the flash device. Similarly, the Nios II EDS
elf2flash command line utility converts your compiled and linked Executable and
Linking Format File ( .elf ) software design to .flash . After your design files are in the
.flash format, use the Board Update Portal or the Nios II EDS nios2-flash-
programmer utility to write the .flash files to the user hardware 1 and user software
locations of the flash memory.
f
For more information about Nios II EDS software tools and practices, refer to the
Embedded Software Development page of the Altera website.
Creating Flash Files Using the Nios II EDS
If you have an FPGA design developed using the Quartus II software, and software
developed using the Nios II EDS, follow these instructions:
1. On the Windows Start menu, click All Programs > Altera > Nios II EDS > Nios II
Command Shell .
2. In the Nios II command shell, navigate to the directory where your design files
reside and type the following Nios II EDS commands:
For Quartus II .sof files:
sof2flash --input= <yourfile> _hw.sof --output= <yourfile> _hw.flash --offset=0x000A0000 -
pfl -optionbit=0x00018000 --programmingmode=PS r
For Nios II .elf files:
elf2flash --base=0x08000000 --end=0x08FFFFFF --reset=0x08800000
--input= <yourfile> _sw.elf --output= <yourfile> _sw.flash
--boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_sources/boot_loader_cfi.sre
c r
The resulting .flash files are ready for flash device programming. If your design uses
additional files such as image data or files used by the runtime program, you must
first convert the files to .flash format and concatenate them into one .flash file before
using the Board Update Portal to upload them.
1
The Board Update Portal standard .flash format conventionally uses either
< filename > _hw.flash for hardware design files or < filename > _sw.flash for software
design files.
Programming Flash Memory Using the Board Update Portal
Once you have the necessary .flash files, you can use the Board Update Portal to
reprogram the flash memory. Refer to “Using the Board Update Portal to Update User
Designs” on page 5–2 for more information.
Cyclone IV GX Transceiver Starter Kit User Guide
? March 2010 Altera Corporation
相关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