Technical note describing how to program SPI Serial Flash on LatticeECP/EC FPGAs via the ispJTAG interface.
This technical note explains the on‑board configuration of SPI Serial Flash memory for LatticeECP/EC FPGA families using the ispJTAG download cable. It covers hardware wiring, pin assignments, SPI/SPIX differences, flash density selection, and the software steps required in ispVM System.
The document provides detailed schematics, pin‑out tables for the download header, and a step‑by‑step programming procedure, including how to use the Soft SPI Interface and configure the CFG pins for SPI or SPIX operation.
| Maximum CCLK frequency | 50 MHz |
|---|---|
| Maximum SPI Flash density for ECP20/EC20 | 5.3 Mb |
| Configuration mode pins for SPI Flash | 000 or 001 |
Set CFG2, CFG1, CFG0 to 000 for standard SPI Flash or 001 for SPIX mode.
The header includes VCCJ, TDO, TDI, PROGRAMN, TRST, TMS, TCK, GND, DONE and INITN pins.
Refer to Table 20‑3; the flash size must be at least the minimum required for the FPGA density (e.g., ECP20/EC20 needs 5.3 Mb).
Connect the ispDOWNLOAD cable, launch ispVM System, scan for the device, select SPI Flash Programming, choose the target flash, load the bitstream, and start programming.