Lattice LCMXO2-256HC-4SG32C CHECK_SECURITY_PROTECT_KEY error
It is software problem with last Diamond SP3 version.
As workaround try to change file XO2_256.svp from SP2 
My Linux path is: /usr/local/diamond/3.10_x64/data/vmdata/database/xpga/xo2