User guide

© March 2014 Altera Corporation Nios II Flash Programmer User Guide
Contents
Chapter 1. Overview of the Nios II Flash Programmer
Introduction ............................................................................11
Prerequisites .........................................................................12
Nios II Flash Programmer GUI and Command-Line Utilities ................................12
How the Flash Programmer Works ........................................................12
Flash Programmer Target Design .......................................................13
Chapter 2. Using the Flash Programmer GUI
Introduction ............................................................................21
Starting the Flash Programmer GUI ........................................................21
Specifying your Flash Programmer Settings ..............................................22
Working with Flash Programmer Settings Files ...........................................23
Setting the Hardware Connection .......................................................24
Checking System ID and System Timestamp ..............................................24
Generating Flash Files and Programming Flash Memory ...................................25
Chapter 3. Using the Flash Programmer from the Command Line
nios2-flash-programmer ..................................................................32
nios2-flash-programmer Command-Line Examples ........................................34
sof2flash ...............................................................................35
sof2flash Command-Line Examples .....................................................36
elf2flash ................................................................................36
Programming Both Hardware and Software into an EPCS/EPCQ Device .....................37
elf2flash Command-Line Examples ......................................................38
bin2flash ...............................................................................38
bin2flash Command-Line Example ......................................................39
Appendix A. Non-Standard Flash Memories
Built-in Recognition and Override ........................................................ A1
Flash Override Files .................................................................... A1
Flash Override File Format ............................................................ A1
How to Use the Flash Override File ..................................................... A2
Width Mode Override Parameter ......................................................... A2
Appendix B. Supported Flash Memory Devices
Appendix C. Stand-Alone Mode
Installing the Nios II Stand-Alone Flash Programmer ....................................... C1
Running the Nios II Stand-Alone Flash Programmer ........................................ C1
Appendix D. Troubleshooting
Overview ............................................................................. D1
Start Button Grayed Out in the Flash Programmer GUI ...................................... D1
Probable Cause ...................................................................... D1
Suggested Actions ................................................................... D1
"No Nios II processors available" Error .................................................... D1
Probable Cause ...................................................................... D1
Suggested Actions ................................................................... D1