Nios® II Flash Programmer User Guide

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

3.1. quartus_pgm --nios2

The quartus_pgm --nios2 utility programs a preformatted file into a specified flash memory. The input is an industry-standard S-record file, normally created by one of the conversion utilities, sof2flash, elf2flash, or bin2flash.

quartus_pgm --nios2 can use any S-record file as an input, provided that the addresses specified in the S-record file represent offsets from the beginning of flash memory. The Nios® II Flash Programmer GUI creates flash programmer files with a .flash extension.

The quartus_pgm --nios2 utility is capable of programming, erasing, or reading from any CF-compatible flash memory or EPCS/EPCQ serial configuration device in the hardware target design.

The quartus_pgm --nios2 command-line syntax is as follows:
quartus_pgm --nios2 [--help] [--cable=<cable name>] 
[‑‑device=<device index>] [--instance=<instance>] 
[‑‑sidp=<address>] [--id=<id>] [--timestamp=<time>] [‑‑accept-bad-sysid] --base=<address> [--epcs | --epcq | ‑‑onchip] <file> [‑‑go]
Note: Before you can program flash memory on your board, you must configure your FPGA with a flash programmer target design. The design must contains at least the minimum component set specified in the Table: Minimum Component Set for the Flash Programmer Target Design in the Flash Programmer Target Design chapter.