15-14
LatticeECP2/M sysCONFIG Usage Guide
Figure 15-6. SPIm, Dual Configuration Images
Programming SPI Serial Flash
The LatticeECP2/M contains dedicated hardware that allows JTAG to access the SPI port, allowing ispVM, embed-
ded hardware, or ATE equipment to program the Flash while it is on the board. In order to program SPI Serial Flash
using JTAG, the CFG pins must be set to SPI or SPIm (see Table 15-3). Please refer to the ispVM Help system for
more information.
Slave Serial Mode
In Slave Serial mode the CCLK pin becomes an input, receiving the clock from an external device. The
LatticeECP2/M accepts data on the DI pin on the rising edge of CCLK. Slave Serial only supports writes to the
FPGA, it does not support reading from the FPGA.
After the device is fully configured, if the Bypass option has been set, any additional data clocked into DI will be
presented to the next device via the DOUT pin, as shown in Figure 15-7.
Lattice FPGA
SPIm Mode
CCLK
DI/CSSPI0N
BUSY/SISPI
D7/SPID0
CFG1
CFG0
SPIFASTN
CFG2
D0/SPIFASTN
PROGRAMN
DONE
SPI Serial Flash
Primary Boot
Golden Boot
Note: The CSSPI1N pin should not be connected.