Nios® II Flash Programmer User Guide

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

3.1.2. quartus_pgm --nios2 Command-Line Examples

  • Programs CFI flash memory based at address 0x200000 with input file ext_flash.flash using a cable named "Usb-blaster [USB-0]".
    quartus_pgm --nios2 --cable="Usb-blaster [USB-0]" --base=0x200000\
    --program ext_flash.flash
  • Programs an EPCS/EPCQ device based at address 0x02100000 with input file epcs_controller.flash.
    quartus_pgm --nios2 --epcs --base=0x02100000 epcs_controller.flash
  • Reads 0x10000 bytes from CFI flash memory based at address 0x200000 and writes the contents to a file named current.srec.
    quartus_pgm --nios2 --base=0x200000 --read=current.srec \ --read-bytes=0,0x10000
  • Erases address range 0x8000 to 0x10000 in CFI flash memory based at address 0x200000.
    quartus_pgm --nios2 --base=0x200000 --erase=0x8000,0x10000
  • Queries CFI flash memory based at address 0x200000 and reports the result. This command dumps the flash memory's query table.
    quartus_pgm --nios2 --base=0x200000 --debug