15-13
LatticeECP2/M sysCONFIG Usage Guide
Figure 15-5. SPI Serial Flash Device Window
Second, click on
Browse
to select an output file name.
Third, select an operation such as
SPI Flash Erase
,
Program
,
Verify
.
Fourth, select the golden file and primary file. Note that these may not be encrypted for the LatticeECP2/M “S” ver-
sion.
And finally, click on the
Generate
button. When file generation is complete, click on
OK
to get back to the main
ispVM window. To program the file into the SPI Serial Flash just click on the
GO
button on the toolbar.
At power-up, when the PROGRAMN pin is toggled, or when a JTAG Refresh instruction is issued, the
LatticeECP2/M reads the primary file from SPI Serial Flash. If a CRC error is found then the LatticeECP2/M will re-
boot automatically, reading configuration data from the golden file instead of the primary file. Note that if an error is
found in the golden file the LatticeECP2/M will drive the INITN pin low and stop trying to configure.
Note that the flow specified here is for initial programming of the SPI Serial Flash. During a field update of the SPI
Serial Flash it is expected that only the primary configuration file will be updated, not the golden file. This is impor-
tant because it guarantees the availability of a known good configuration file.