I've designed a custom FPGA development board for the LCMXO2-2000HC-4TG100C FPGA. I can get the chip to be recognized by JTAG, but it will not program. I have attached the schematic. Note that I messed up the labeling of the JTAG pins but I have that sorted out, and have added pullups on TMS, TDI, and TDO and a pulldown on TCK. I also have not populated the button on programn I am using an FTDI C232HM cable for programming.
From looking at datasheets and reference designs, it appears all I need for programming is the JTAG pins exposed. There is mention of INITN, DONE, PROGRAMN, and JTAGEN pins for programming in some datasheets but none of the reference designs do anything with them.
I've attached the log file which lattice diamond spits out when it fails. There are a couple different error messages but mostly it's "Failed in Function READ_ID" or "Failed in Function CHECK_STATUS". It appears that some data is coming back from the FPGA but not the correct data.
Thanks for any suggestions.