A–2
c
Appendix A: Programming the Flash Memory Device
Preparing Design Files for Flash Programming
Altera recommends that you do not overwrite the factory hardware and factory
software images unless you are an expert with the Altera tools or deliberately
overwriting the factory design. If you unintentionally overwrite the factory hardware
or factory software image, refer to “Restoring the Flash Device to the Factory Settings”
Preparing Design Files for Flash Programming
You can obtain designs containing prepared .flash files from the Audio Video
Development Kit, Stratix IV GX Edition 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 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=0xC20000 r
For Nios II .elf files:
elf2flash --base=0x0A000000 --end=0x0BFFFFFF --reset=0x0A820000
--input= <yourfile> _sw.elf --output= <yourfile> _sw.flash
--boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec 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.
Audio Video Development Kit, Stratix IV GX Edition User Guide
? November 2009
Altera Corporation
相关PDF资料
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
DM163022-1 BOARD DEMO PIC16F87X PIC18FXX2
DM163030 KIT DEV PICDEM LCD2
DM163035 KIT DEVELOPMENT PICDEM LAB
DM164120-1 BOARD DEMO PICKIT 2 LP COUNT
相关代理商/技术参数
DKWF111 功能描述:WiFi/802.11开发工具 WF111 SDIO Eval kit RoHS:否 制造商:Roving Networks 产品:Evaluation Boards 工具用于评估:RN-171 支持协议:802.11 b/g 频率:2.4 GHz 接口类型:UART 工作电源电压:2 V to 16 V
DKWF121 功能描述:WiFi/802.11开发工具 WF121 Dev Kit RoHS:否 制造商:Roving Networks 产品:Evaluation Boards 工具用于评估:RN-171 支持协议:802.11 b/g 频率:2.4 GHz 接口类型:UART 工作电源电压:2 V to 16 V
DKWT32I 功能描述:BLUETOOTH DEVELOPMENT KIT 制造商:silicon labs 系列:- 零件状态:有效 类型:收发器; 传统蓝牙? 频率:2.4GHz 配套使用产品/相关产品:WT32i 所含物品:板 标准包装:1
DKXC5VADAPT-1 功能描述:DAC DK FPGA ADAPTER BOARD RoHS:是 类别:编程器,开发系统 >> 配件 系列:- 标准包装:1 系列:- 附件类型:适配器板 适用于相关产品:RCB230,RCB231,RCB212 配用:26790D-ND - RCB BREAKOUT BOARD RS232 CABLE
DKYRITRPDR2B30 制造商:OMRON AUTOMATION AND SAFETY 功能描述:TEXAS INSTRUMENTS V640RFID TAG
DKY-RI-TRP-DR2B-30 制造商:OMRON AUTOMATION AND SAFETY 功能描述:TEXAS INSTRUMENTS V640RFID TAG 制造商:Omron Electronic Components LLC 功能描述:TI V640RFID tag 制造商:OMRON INDUSTRIAL AUTOMATION 功能描述:Texas Instruments V640RFID tag
DK-Z7-VIDEO-CES-G 制造商:Xilinx 功能描述: 制造商:Xilinx 功能描述:ZYNQ-7000 VIDEO AND IMAGING KIT 制造商:Xilinx 功能描述:IMAGING / VIDEO KIT ZYNQ-7000 制造商:Xilinx 功能描述:IMAGING / VIDEO KIT, ZYNQ-7000
DK-Z7-VIDEO-CES-G-J 制造商:Xilinx 功能描述:ZYNQ-7000 VIDEO/IMAGE KIT JAPAN