User guide
Storing Firmware on the Target Board
Note: In order for the flash programmer to program any SRAM object file
or data file, you must specify target hardware, even if you are not
programming an executable file into flash memory. The flash programmer
uses the target hardware settings to determine the available flash
memories and FPGA configuration locations.
5. If you have an FPGA configuration to program into flash memory, use the following
steps:
a. Turn on Program FPGA configuration data into hardware-image
region of flash memory.
b. Specify the data file in the FPGA configuration (.sof) box.
c. In the Hardware Image list, select the FPGA configuration location.
d. In the Memory list, select the flash memory device.
e. In the Offset box, type the offset within the flash memory device to place
the base of the data.
6. If you have a data file to program into flash memory, use the following steps:
a. Turn on Program a file into flash memory.
b. Specify the file to program to flash in the File box.
c. In the Memory list, select the flash memory device.
d. In the Offset box, type the offset within the flash memory device to place
the base of the data.
To specify programming cable and target flash memory device:
1. In the configurations list, click a flash programmer configuration.
2. Click the Target Connection tab.
3. In the JTAG cable list, select the JTAG cable attached to your target board. If you
have only one cable, the automatic value automatically identifies your cable. If
your cable is not shown in the list, make sure that it is installed correctly, and click
Refresh to add it to the list.
4. In the JTAG device list, select the Nios II system to program. If you have only
one Nios II system connected to your JTAG cable, the automatic value
automatically identifies your system. If your Nios II system is not shown in the
list, make sure that the hardware is installed correctly, and click Refresh to add it
to the list.
To program flash memory on the target board:
1. In the configurations list, click a flash programmer configuration. Settings on the
Main and Target Connection tabs must be legal values to proceed.
2. Click Program Flash in the lower-right corner of the dialog box to begin
programming the flash. The flash programming process might take several
minutes, depending on the size of the data to download.
If your project is not up to date, the Nios II IDE automatically builds your project before
programming it into flash memory. To turn off the automatic build, on the Window menu,
77