Download Nios II Flash Programmer User Guide

Transcript
Contents
Chapter 1. Using the Nios II Flash Programmer & Instantiating Flash Memory
Introduction ............................................................................................................................................ 1–1
Nios II Flash Programmer Overview .................................................................................................. 1–2
How the Nios II Flash Programmer Works .................................................................................. 1–2
Flash Programmer Design .............................................................................................................. 1–3
Target Boards .................................................................................................................................... 1–4
Types of Flash Content .................................................................................................................... 1–5
Flash Files .......................................................................................................................................... 1–5
Booting Options ................................................................................................................................ 1–5
Booting From CFI Flash ............................................................................................................. 1–6
Booting From EPCS Serial Configuration Devices ................................................................. 1–6
Boot-Copier Program ................................................................................................................. 1–6
Programming Content into Flash ........................................................................................................ 1–7
Using Nios II IDE ............................................................................................................................. 1–7
Flash Programming Script .............................................................................................................. 1–9
Using Command-Line Utilities .................................................................................................... 1–10
elf2flash Utility .......................................................................................................................... 1–10
sof2flash Utility ......................................................................................................................... 1–11
bin2flash Utility ......................................................................................................................... 1–11
nios2-flash-programmer Utility .............................................................................................. 1–12
Instantiating Flash in SOPC Builder Systems .................................................................................. 1–13
Chapter 2. Porting the Nios II Flash Programmer to Custom Boards
Porting the Nios II Flash Programmer to New Hardware .............................................................. 2–1
Before You Begin .............................................................................................................................. 2–1
Creating a Target Board .................................................................................................................. 2–1
Selecting Your New Target Board ............................................................................................... 2–11
Altera Corporation
iii