Lattice FPGA Read the bitfile - Page 1
Forum section: electronics / general

author: 2X
author_rank: Frequent Contributor
timestamp: March 06, 2025, 10:43:48 am
content: Hello, I have the Lattice FPGA “LCMXO640C-3TN144C”.Firstly, I can’t find on the below datasheet the pinout of the pins from the chip.Second, how can I read the bitfile (if it is not locked) from the “LCMXO640C-3TN144C”… what programmer I will need and also the Diamond IDE v3.14 can be used for this FPGA and the corresponding programmer?https://www.latticesemi.com/view_document?document_id=9922

author: Berni
author_rank: Super Contributor
timestamp: March 06, 2025, 10:51:34 am
content: Pinouts for FPGAs are commonly provided separately as a excel spreadsheet on the manufacturers website. (This is nice because it lets you automate making schematic symbols for them)As for the cheapest programmer. It is best to buy one of their cheap devboards that includes a USB to JTAG onboard and rewire the JTAG connector to instead let you connect other boards to it. You can also find Chinese clones of the programmer hardware even cheaper, but it is not from the official vendor.

author: 2X
author_rank: Frequent Contributor
timestamp: March 06, 2025, 11:26:00 am
content: There is any link from this excel with the pins because I can't find it.

author: xvr
author_rank: Frequent Contributor
timestamp: March 06, 2025, 02:08:04 pm
content: https://www.latticesemi.com/-/media/LatticeSemi/Documents/DataSheets/MachXO23/FPGA-DS-02071-3-3-MachXO-Family-Data-Sheet.ashx?document_id=9922Page 60

author: 2X
author_rank: Frequent Contributor
timestamp: March 06, 2025, 07:03:21 pm
content: I found the below programmer. Does anyone knows if it is compatible with Diamond IDE (or if you have to suggest another program) and can support the “LCMXO640C-3TN144C” FPGA?HW-USBN-2A Lattice is Download Cable USB Jtag ISP FPGA CPLD Programmer for Diamond is Lever Win7 WIN8 WIN8.1https://www.aliexpress.com/i/4000337860205.html#nav-specificationLattice Diamond Softwarehttps://www.latticesemi.com/latticediamondhttps://www.eevblog.com/forum/fpga/lattice-fpga-programmer/msg5406836/#msg5406836thanks to ataradov

author: 2X
author_rank: Frequent Contributor
timestamp: March 06, 2025, 09:40:21 pm
content: Maybe I found a solution.

author: 2X
author_rank: Frequent Contributor
timestamp: March 12, 2025, 08:08:24 pm
content: Has anyone try the below programmer? It is reliable?I want to program the FPGA LCMXO640C-3TN144C with the IDE Diamond v3.14.https://www.aliexpress.us/item/4000337860205.html?spm=a2g0o.detail.pcDetailBottomMoreOtherSeller.1.6d16C1l5C1l5k1&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.40050.354490.0&scm_id=1007.40050.354490.0&scm-url=1007.40050.354490.0&pvid=794059d9-5e24-4590-862a-dd11914239ba&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.40050.354490.0,pvid:794059d9-5e24-4590-862a-dd11914239ba,tpp_buckets:668%232846%238112%231997&pdp_ext_f=%7B%22order%22%3A%2217%22%2C%22eval%22%3A%221%22%2C%22sceneId%22%3A%2230050%22%7D&pdp_npi=4%40dis%21EUR%2132.99%2132.99%21%21%2135.14%2135.14%21%40211b61bb17417967108324556edf4f%2110000001381845680%21rec%21GR%21138459962%21X&utparam-url=scene%3ApcDetailBottomMoreOtherSeller%7Cquery_from%3A#nav-reviewComparing HW-USBN-2A and HW-USBN-2B: Which One Deserves Your Attention?https://www.fpgakey.com/technology/details/comparing-hw-usbn-2a-and-hw-usbn-2b-which-one-deserves-your-attention

author: mon2
author_rank: Frequent Contributor
timestamp: March 12, 2025, 08:18:06 pm
content: This thread should help:https://www.eevblog.com/forum/fpga/lattice-fpga-programmer/From memory, we purchased the official Lattice JTAG tool and also assorted kits with the FTDI controller onboard. In summary, we were able to build our own programmer that was recognized by the Lattice toolchain as long as we remained with the FTDI controllers (dual version) with the MPSSE engine which can offer the JTAG interface.As a test, purchase any low cost dual FTDI dual controller board with the MPSSE engine for testing (ie FT2232HL based).Here is one of many out there:https://www.aliexpress.com/item/32975940318.html?spm=a2g0o.detail.pcDetailBottomMoreOtherSeller.2.67c9Cg0MCg0MKR&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.40196.404796.0&scm_id=1007.40196.404796.0&scm-url=1007.40196.404796.0&pvid=7577e64e-e7ba-4ff8-8d15-1aaa942f820c&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.40196.404796.0,pvid:7577e64e-e7ba-4ff8-8d15-1aaa942f820c,tpp_buckets:668%232846%238111%231996&pdp_ext_f=%7B%22order%22%3A%222%22%2C%22eval%22%3A%221%22%2C%22sceneId%22%3A%2230050%22%7D&pdp_npi=4%40dis%21CAD%2125.72%2122.38%21%21%2117.42%2115.16%21%402101ea7117418106279561116e06cc%2112000033552420229%21rec%21CA%21104657229%21X&utparam-url=scene%3ApcDetailBottomMoreOtherSeller%7Cquery_from%3A

author: bson
author_rank: Unknown
timestamp: March 14, 2025, 09:32:42 pm
content: Quote from: 2X on March 06, 2025, 07:03:21 pmI tried this (which took well over a month to actually receive):https://www.aliexpress.us/item/3256802957528698.htmlBut could never get it to work with either Win11 or Fedora 40 (Linux). No amount of fiddling with drivers or Lattice's idiotic programmer helped, at best it recognized the chip but programming consistently failed.So screw that. Got the actual Lattice item, which just worked.I have a hunch the -2A version requires some old version of Windows and simply doesn't work on Linux at all.The Lattice branded one I got is -2B.

author: mon2
author_rank: Frequent Contributor
timestamp: March 15, 2025, 01:16:18 pm
content: I can only vouch that the FTDI dual MPSSE controller is working well to use the standard Lattice toolchain to program the ICE40UL1K devices. We have applied this same controller on our ICE-TRAY design:https://axxon.io/icetray/#bwg2/4To reflash the ICEPIK boardshttps://axxon.io/icepik/I do believe that the -2B variation of this JTAG tool has a FPGA inside. You can dismantle the enclosure to confirm.