Creating flash files for remote system update, Creating flash files for remote system update –6 – Altera Nios II Embedded Evaluation Kit Cyclone III Edition User Manual
Page 36
Altera Corporation
4–6
July 2010
Nios II Embedded Evaluation Kit, Cyclone III Edition
Application Selector Utility
Creating Flash
files for Remote
System update
The image required for remote system update consists of a Flash image
for FPGA configuration and if your system has a software application
then it consist of a Flash image for the software application. To create the
flash files you must have the Nios II EDS and Quartus II FPGA design
software installed on your PC.
■
A hardware SRAM object file (*.SOF) must have the cpu reset
address configured from the Flash device at offset 0x0.
■
Create the software Executable link format file (ELF) in the standard
fashion.
■
On your host PC, launch a Nios II Command Shell from Start ->
Programs -> Altera -> Nios II <
version #> EDS -> Nios II Command
Shell
■
From the command shell navigate to where your SOF file is located
and create your hardware Flash image using the following
command:
sof2flash --activeparallel --input=”your SOF.sof” -
-output=”your SOF.flash” --
offset=”RECONFIG_ADDRESS”
■
From the command shell navigate to where your ELF file is located
and create your software Flash image using the following command:
elf2flash --base=0x04000000 --end=0x04FFFFFF --
reset=0x04240000 --input=”your ELF.efl” --
output=”your FLASH.flash” --
boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_
loader_cfi.srec