Lattice program jtag


i bought the AK-LINK-2 USB JTAG in Lattice mode to program fpga

we had describe a example with stm32 board on your site

Are you an example with lattice machx02 board ?

Hello @calimero65,

The MACHXO2 FPGA can be programmed using the Lattice Programmer application that is included in the Lattice Diamond Software, using the AK-LINK-2 JTAG.

As far as I know, there is now way to program a MACHXO2 using OpenOCD (as you have seen in the example).

thanks for your reply,

my tests with this two methods are results described below:

  1. Lattice diamond programmer

IT WORKS ! prelinimary, i installed ftdi driver ( CDM21228_Setup.exe)
the led of the board become green

  1. openocd

IT FAILED ! I tried to change with zadig different driver (windriver, libusb…) but

Info : auto-selecting first available session transport “jtag”. To override use 'transport select '.
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND

i use the config ak-link-2.cfg

Hello @calimero65,

  1. Lattice Diamond programmer: OK, you can use this to program the FPGA.

  2. As far as I know, OpenOCD does not support programming the MachXO2. Are you using the AK-LINK-2 to program other chips beside the MachXO2? What is the OpenOCD command line you are using?