Sof2flash, Sof2flash –5 – Altera Nios II User Manual
Page 19

Chapter 3: Using the Flash Programmer from the Command Line
3–5
sof2flash
© March 2014
Altera Corporation
Nios II Flash Programmer User Guide
Queries CFI flash memory based at address 0x200000 and reports the result. This
command dumps the flash memory's query table.
sof2flash
The sof2flash utility takes an SRAM Object File and translates it to an S-record file,
suitable for programming into flash memory.
lists the typical parameters used with sof2flash.
f
For additional parameters, type sof2flash --help at a command line.
Table 3–3. sof2flash Parameters
Name
Required
Description
General Parameters
--compress
Optional
Turns on compression. Available for Cyclone
®
II,
Cyclone III, Stratix
®
II, and Stratix III devices.
--input=
Required
Name of the input SRAM Object File.
--output=
Required
Name of the output file.
CFI Parameters
--offset=
Required
Offset within the flash memory device where the FPGA
configuration is to be programmed.
EPCS Parameters
--epcs
Required for EPCS
devices; defaults off
Specifies that the output is intended for an EPCS device.
--epcq
Required for EPCQ
devices
Specifies that the output is intended for an EPCQ device.
Device Specific Parameters
--activeparallel
Optional
Creates parallel flash contents compatible with
active-parallel configuration mode. Only available on
FPGAs which support active-parallel configuration.
--pfl
Required if your
FPGA configuration
uses the PFL
Specifies that the flash programmer use the parallel flash
loader. Required if your FPGA configuration uses the
parallel flash loader (PFL).
--optionbit=
Required if your
FPGA configuration
uses the PFL
Specifies the option bit address in your flash memory
device. When you use this option, the sof2flash
command generates both a .flash file and a .map.flash
file. When you program the flash memory with the
.map.flash file, it overwrites the default option bits. In
almost all cases, the default option bits are appropriate
and you should not program this file to flash.
Note to
(1) Using the --pfl and --optionbits command-line options slows down sof2flash generation noticeably. For more information about
when to use the --pfl and --optionbits command-line options, refer to
.
(2) From Nios II EDS 13.1 onwards, the -epcq option is required for V-series devices and above to program an EPCQ device.