Nios® II Flash Programmer User Guide

ID 683118
Date 11/06/2017
Public
Document Table of Contents

3.2.2. sof2flash Command-Line Examples

  • Converts standard.sof to an S-record file named standard_cfi.flash intended for a CFI flash memory. The S-record offset begins at 0x0.
    sof2flash --offset=0x0 --input=standard.sof \ --output=standard_cfi.flash
  • Converts standard.sof to an S-record file named standard_epcs.flash intended for an EPCS device.
    sof2flash --epcs --input=standard.sof --output=standard_epcs.flash
  • Converts standard.sof to an S-record file named standard_epcq.flash intended for an EPCQ device.
    sof2flash --epcq --input=standard.sof --output=standard_epcq.flash
  • Converts standard.sof to an S-record file named standard.flash for use with the parallel flash loader, and generates an option-bits overwrite file standard.map.flash for option bits at offset 0x18000 on the flash memory device.
    sof2flash --optionbit=0x18000 --pfl --input=standard.sof \ --output=standard.flash --offset=0x640000
Note: It is recommended that you not use the standard.map.flash file even if you generate it. The --optionbit command-line option is required for correct functioning of the --pfl option, but the resulting overwrite file should be ignored.

Did you find the information on this page useful?

Characters remaining:

Feedback Message