6179 - How do user program Lattice FPGA after programming a bitstream to the SPI Flash with JTAG_PORT and MASTER_SPI_PORT set to DISABLED?

6179 - How do user program Lattice FPGA after programming a bitstream to the SPI Flash with JTAG_PORT and MASTER_SPI_PORT set to DISABLED?

Description:
When JTAG_PORT and MASTER_SPI_PORT is set to DISABLED, user can no longer access the configuration logic through JTAG and MSPI Port. Thus, user can't perform programming with the interface.

Solution:
To workaround on this, user can follow the following steps:
1. If user have a PROGRAMN pin connected to a pushbutton (pb) switch, hold the PROGRAMN button to pull it ground. 
2. Using the JTAG interface, run an Erase Only operation on the SRAM using the programmer while pressing on the PROGRAMN pb switch. 
3. Release the PROGRAMN once you see the DONE pin asserting or if you have an LED connected to DONE release PROGRAMN once you see the DONE pin LED turning on.

Once the Erase Only operation is successful, user can now program the SPI Flash or configure the SRAM.

This step is only workable if user didn’t set the "PROGRAMN_Disable" bit on the feature row,