[solved] ispMach 4000ZE - Will not program? - Page 1
Forum section: electronics / general

author: David Chamberlain
author_rank: Frequent Contributor
timestamp: March 11, 2018, 07:35:36 am
content: Hi All, I have posted about this a while back but am now unable to find the original thread. I have just returned to this project after some time and this issue is still bugging the hell out of me as I was never able to resolve it.It's a section on my function generator for calibrating the main on board frequency reference and provides an external counter via a ispMach 4000ZE cpld - specifically the LC4256ZE-5TN100C. I have attached the schematic below.The tools I am using are the ispLEVER, Latice Diamond Programmer, and the official Latice HW-USB-2B programming cable $$$ispLEVER builds my project fine (for the above device) and spits out the JED file.The Latice programmer is able to complete the JTAG scan OK, verify the cpld device ID OK, but every time I program it the verification pass fails.The output window shows this...Code:INFO - Check configuration setup: Start.INFO - JTAG Chain Verification. No Errors.INFO - Check configuration setup: Successful.INFO - Device1 LC4256ZE: Erase,Program,VerifyERROR -Failed in Function VERIFY (see log file for more details)ERROR - Process Operation Failed.INFO - Elapsed time: 00 min : 01 secERROR - Operation: unsuccessful.ERROR - Programming failed.And the log shows this...Code:Connected to Lattice Cable Server.Lattice HW-USBN-2B cable detected.Frequency setting= 2727272 HzCheck configuration setup: Start.Frequency setting= 2727272 HzJTAG Chain Verification. No Errors.Check configuration setup: Successful.Device1 LC4256ZE: Erase,Program,VerifyFrequency setting= 2727272 HzFrequency setting= 2727272 Hz--------------Row1--------------:HDR 0TDR 0SDR 1592 TDI(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)Expected TDO(5FF87E0318C6318C619CEBFFFFFE3FFFE3FFC7F87FFFFDFFFEBFFF8BFF10842108421BD7FFF17FE2F884213FFF17FFFFFFBD7FFF1FFE7F9CE739DEFFAFFC3F18CC6318C6318C7DFFFFFFFAFFFFFFFC3F17C5F18CE75FFFC5FF8BE2108421085FFFFFFEF5FFFC1F098C6318C6318CBFFF8FFF3FCE77BDE37FFFFEFFFFEBFFF83E5318C6318C67B97FFF17FE2F8842117FF7FFFFFFFBD7FFF1FFE6F98E73BDEFFAFFFE6FFCDF318C6318C5FFFFFF7FAFFFE2FFC42109EF19FFF5FFFCFFF986739CE77BDFFFFFFFFD)Received TDO(FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC00000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF800000003FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000007FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC00000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF800000003FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000007FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE00000000)Bits Error 1592: Expected: 0 Received: 1Bits Error 1590: Expected: 0 Received: 1Bits Error 1579: Expected: 0 Received: 1Bits Error 1578: Expected: 0 Received: 1Bits Error 1577: Expected: 0 Received: 1Bits Error 1576: Expected: 0 Received: 1Bits Error 1569: Expected: 0 Received: 1Bits Error 1568: Expected: 0 Received: 1Bits Error 1567: Expected: 0 Received: 1Bits Error 1566: Expected: 0 Received: 1and more...Execution time: 00 min : 02 secFailed in Function VERIFY (see log file for more details)Process Operation Failed.Elapsed time: 00 min : 02 secOperation: unsuccessful.The fact that the device ID comes back OK makes me think I have no problem with the cable connections to the chip or the power to the chip? I have tried the custom Clock Divider = x10 but same thing.I feel that since the Device ID verifies without issue that I have at least validated the connections (TMS, TDI, TDO, TCK, VCC & GND) ? Or is that being optimistic?The issue is I have never been able to load and verify the JED file to the device?I would really really like to hear from others who have used any of the above tools and had any similar issues that might help me out.

author: David Chamberlain
author_rank: Frequent Contributor
timestamp: March 11, 2018, 10:21:47 pm
content: ...I have also tried ispVM as well as erased the chip only in case I had set the Security Bit somehow. No Luck.Also checked all signals with a scope and they look to be nice clean swinging between 0 and 3.3 volts.And a note about the example log file I posted, the verify read back is always the same.(FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC00000001FFF ......

author: David Chamberlain
author_rank: Frequent Contributor
timestamp: March 12, 2018, 03:09:33 am
content: Um a potentially embarrassing mistake is slowly dawning on me, namely that the Mach 4000ZE core voltage is 1.8V and somewhat lower then the 3.3V I had designed for

author: David Chamberlain
author_rank: Frequent Contributor
timestamp: March 12, 2018, 04:09:30 am
content: Yup, lifted the four core pins off the board and connected to 1.8V. Chip now programs fine (on x10 TCK Divider) .. I guess time will tell what damage I did to the thing: