Altera Nios II User Manual

Page 14

Advertising
background image

2–6

Chapter 2: Using the Flash Programmer GUI

Starting the Flash Programmer GUI

Nios II Flash Programmer User Guide

© March 2014

Altera Corporation

To generate flash files or to write to flash memory using your flash programmer
settings, perform the following steps:

1. On the Options menu, turn on the actions you wish to perform. The following

actions are available:

Generate Files

—Generates flash files.

Program Files

—Programs flash memory with the generated flash files.

Erase Flash Before Programming

—Erases the entire flash memory before

writing each flash file to it.

Run From Reset After Programming

—Runs the processor from its reset vector

after flash memory programming is complete.

The final two actions are relevant only if you turn on Program Files.

2. To specify the directories where you want the flash programmer to store the

generated flash files and script, on the Options menu, click Staging Directories
and specify the script and flash-files directory paths.

3. On the tab for the flash memory device you wish to target, under Files for flash

conversion

, click Add.

The Nios II Flash Programmer adds the file to the Files for flash conversion list
and derives the flash offset from the file. Depending on your current Options
settings, the File generation command and File programming command boxes
populate with the command-line commands that generate the .flash file and
program it to your flash memory, respectively, providing a convenient way to
learn about the command-line utilities.

4. If you wish to pass any additional arguments to the file generation command,

under File generation command, click Properties.

5. If necessary, edit the Conversion Type settings for the files listed in the Files for

flash conversion

table, by clicking the relevant table cells. Allowed conversion

types are ELF, SOF, and BINARY.

6. If necessary, edit the Flash Offset settings for the files listed in the Files for flash

conversion

table, by double-clicking the relevant table cells.

1

Do not specify a flash offset for files of conversion type ELF.

7. Click Start. The Nios II Flash Programmer performs the actions specified by the

commands, storing the generated flash files to the specified flash directory, and
capturing the commands it runs to the flash_programmer.sh bash shell script in
the specified script directory.

1

You can use this script to duplicate the same actions again in the future, and
to learn about the command-line utilities.

Advertising