Altera Corporation iii
Contents
About This User Guide ............................................................................ v
Chapter 1. Overview of the Nios II Flash Programmer
Introduction ............................................................................................................................................ 1–1
Prerequisites ...................................................................................................................................... 1–2
How the Flash Programmer Works .................................................................................................... 1–2
IDE and Command-Line Modes ......................................................................................................... 1–3
Flash Programmer Target Design ....................................................................................................... 1–3
Minimum Component Set ............................................................................................................... 1–4
Chapter 2. Using the Flash Programmer in IDE Mode
The Flash Programmer Dialog Box ..................................................................................................... 2–1
Chapter 3. Using the Flash Programmer in Command-Line Mode
nios2-flash-programmer ....................................................................................................................... 3–2
nios2-flash-programmer Command-Line Examples .................................................................. 3–5
sof2flash .................................................................................................................................................. 3–6
sof2flash Command-Line Examples .............................................................................................. 3–6
elf2flash ................................................................................................................................................... 3–6
Programming Both Hardware and Software into an EPCS Device .......................................... 3–8
elf2flash Command-Line Examples ............................................................................................... 3–9
bin2flash .................................................................................................................................................. 3–9
bin2flash Command-Line Example ............................................................................................. 3–10
Appendix A. Non-Standard Flash Memories
Built-in Recognition and Override ..................................................................................................... A–1
Flash Override Files .............................................................................................................................. A–1
Flash Override File Format ............................................................................................................ A–2
How to Use the Flash Override File ............................................................................................. A–2
Width Mode Override Parameter ...................................................................................................... A–2
Appendix B. Supported Flash Memory Devices
Appendix C. Stand-Alone Mode
Installing the Nios II Stand-Alone Flash Programmer .................................................................... C–1
Running the Nios II Stand-Alone Flash Programmer ..................................................................... C–2
Appendix D. Troubleshooting
Overview ................................................................................................................................................ D–1
Program Flash Button Grayed Out in the IDE ................................................................................. D–1