C. stand-alone mode, Running the nios ii stand-alone flash programmer, Appendix c. stand-alone mode – Altera Nios II User Manual

Page 29

Advertising
background image

© March 2014

Altera Corporation

Nios II Flash Programmer User Guide

C. Stand-Alone Mode

While developing hardware or software, you use the Nios II Flash Programmer on a
computer with the Quartus II software and the Nios II EDS installed. However, in a
production or service environment you might want to set up a computer to program
flash memory without installing the full set of Altera development tools. A
stand-alone version of the Nios II Flash Programmer is available for this purpose.

In stand-alone mode, the flash programmer has limited functionality. You can
program any type of CFI or EPCS flash memory. However, the elf2flash, sof2flash,
and bin2flash utilities are not available. You must create input files for the flash
programmer on a computer which has the Nios II development tools fully installed.

Installing the Nios II Stand-Alone Flash Programmer

To install the Nios II Flash Programmer in stand-alone mode, perform the following
steps:

1. Install the Quartus II Stand-Alone Programmer from the Quartus II CD. The

nios2-flash-programmer

utility requires the Quartus II Stand-Alone Programmer

to access the JTAG chain on the board.

2. On a computer which has the Nios II EDS fully installed, find the executable file

<Nios II EDS install path>/bin/nios2-flash-programmer.exe.

3. On the stand-alone computer, copy nios2-flash-programmer.exe to the directory

<Quartus II Stand-Alone Programmer Path>/bin.

4. On the computer with the full Nios II EDS installation, find the Windows library

file c:/cygwin/bin/cygwin1.dll. If you install cygwin separately from the Nios II
EDS, your cygwin DLLs might reside in a different directory.

5. On the stand-alone computer, copy cygwin1.dll into c:/cygwin/bin (or the

equivalent path, based on the cygwin installation).

Running the Nios II Stand-Alone Flash Programmer

To run the Nios II Flash Programmer in stand-alone mode, perform the following
steps:

1. Open a command prompt on the stand-alone computer. Change directories to the

location of the files you wish to program into flash memory.

2. Run the nios2-flash-programmer utility as described in

Chapter 3, Using the Flash

Programmer from the Command Line

.

Advertising