7159 - When failing in programming/booting, which information is helpful for tech support to analyze the issue?
Problem: Programming and booting from both internal flash and external flash are failing. Which information is helpful to tech support?
Solution:
When failing programming and booting, technical support can help in analyzing the issue by sharing the status register readings. See below for example from MachXO3LF:

See FAQ: https://www.latticesemi.com/support/answerdatabase/5/8/8/5882 .For full status register description.
Status registers are also available in Nexus devices.
You can access the status register through SRAM Read status register. See below:

Also, please share waveform for programming operation up to the point of failure (JTAG, SPI, or I2C) transaction and the log file from the programmer.
Related Articles
Why FPGA Programming Failure When JTAG Chain Has 7 or More Devices?
DESCRIPTION When programming Lattice FPGA devices via SPI Flash using a JTAG chain, the Erase-Program-Verify (EPV) operation fails deterministically starting from the 7th device in the chain. Chains of 6 devices or fewer complete SPI Flash EPV ...
7757 - Radiant Programmer: What is Erase, Program, Verify Quad 1 operation used for?
Description: Erase, Program, Verify Quad 1 enables that QE bit to '1'. In general, there are two (2) requirements/steps to enable booting from external SPI Flash through x4 (QUAD Mode) Step 1 - Convert the bitstream file into hex (Quad I/O read mode) ...
1872 - How do I write my own programming utility using that uses Lattice download cables?
The programming interface used by Lattice's ispVM System and Diamond Programmer tools is proprietary, and not available for use in developing custom programming applications. Lattice evaluation boards that implement the Future Technology Devices ...
6260 - Radiant version 3.0 or earlier: How to solve Nexus Platform SRAM programming issue?
Description: In Radiant 3.0 or earlier version, the sysConfig has default setting for the JTAG_PORT as DISABLED. So it could lead to JTAG access issue on the device after loading the generated bitstream into the SPI Flash. Solution: As a workaround, ...
7118 - MachXO3D: Why does MachXO3D device flash programming operation failed with "ERROR - Failed in Function FLASH_ENABLE" when Password Protection was enabled?
Description: After user enabled Password Protection feature in Diamond Programmer and program the passkey into MachXO3D device, user may experienced Flash Programming Mode operation failed with the following error message: ERROR - Failed in Function ...