Cyclone® V GT FPGA Development Kit User Guide

ID 792833
Date 2/21/2024
Public
Document Table of Contents

A.3. Creating Flash Files Using the Nios® II EDS

If you have an FPGA design developed using the Intel® Quartus® Prime 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 Intel® Quartus® Prime .sof files:
      sof2flash --input=<yourfile>_hw.sof --output=<yourfile>_hw.flash --offset=0xC80000
      --pfl --optionbit=0x00018000 --programmingmode=FPP
      
    • For Nios® II .elf files:
      elf2flash --base=0x00000000 --end=0x0FFFFFFF --reset=0x3540000
      --input=<yourfile>_sw.elf --output=<yourfile>_sw.flash
      --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec
      

The resulting .flash files are ready for flash device programming.

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.