681 - LatticeECP2: How to setup LatticeECP2 dual boot application to load the golden bitstream instead of primary bitstream?

681 - LatticeECP2: How to setup LatticeECP2 dual boot application to load the golden bitstream instead of primary bitstream?

Description:

A dual boot application using the LatticeECP2 device has both a golden bitstream act as the golden image, and a primary bitstream act as user image which is periodically updated in SPI Flash. In a typical dual boot configuration scenario, the golden bitstream is not downloaded to LatticeECP2 unless primary bitstream fails to load. 

Solution:

The LatticeECP2 dual boot with golden and primary bitstreams occurs when using the SPIm mode. By changing to SPI mode with the CFG pins all set low, the golden bitstream is always loaded from SPI Flash and the primary bitstream is ignored. This will address cases where user wanted to download the golden bitstream rather than the primary bitstream during normal boot up.

Reference: LatticeECP3, LatticeECP2/M, ECP5 and ECP5-5G Dual Boot and Multiple Boot Feature - FPGA-TN-0220