Author Topic: Lattice Diamond program FTDI issue  (Read 4501 times)

0 Members and 1 Guest are viewing this topic.

Offline peepo

  • Contributor
  • Posts: 11
  • Country: gb
Lattice Diamond program FTDI issue
« on: December 30, 2015, 03:32:22 am »
Help needed using Lattice Diamond 3.6.0.83.4 with MachXO3 Starter Kit on Ubuntu 14.04

Diamond is installed and runs, but does not program:
ERROR - Failed to Open FTDI USB port. Make sure to select the right cable type.

$ sudo udevadm test /dev/bus/usb/003/007
unable to open device '/sys/dev/bus/usb/003/007'

$ lsusb
Bus 003 Device 007: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC

udev rules re: ftdi_sio added and restarted

Detect Cable:

INFO - No Lattice HW-DLN-3C (parallel) cable detected.

INFO - No Lattice HW-USBN-2A cable detected.

INFO - Board with FTDI USB Host Chip detected.

INFO - Multiple cables were detected.

Program:

Starting: "pgr_program run"

INFO - Check configuration setup: Start.

INFO - JTAG Chain Verification. No Errors.

INFO - Check configuration setup: Successful.

INFO - Device1 LCMXO3LF-6900C: LCMXO3LF-6900C: Verify ID

INFO - Operation Done. No errors.

INFO - Device1 LCMXO3LF-6900C: SPI-S25FL204K: SPI Flash Background Erase,Program,Verify

Initializing...

IDCode Checking...

ERROR - Verification Error...when Processing function: 'CHECK_ID'

ERROR - Operation: unsuccessful.

ERROR: pgr_program failed.

ERROR - Programming failed.


HW-USBN-2B (FTDI) is now pre-selected
 

Offline ale500

  • Frequent Contributor
  • **
  • Posts: 288
Re: Lattice Diamond program FTDI issue
« Reply #1 on: January 01, 2016, 05:56:29 pm »
 

Offline peepo

  • Contributor
  • Posts: 11
  • Country: gb
Re: Lattice Diamond program FTDI issue
« Reply #2 on: January 01, 2016, 07:59:08 pm »

yes I read that thread ,

and left a reply asking  followers to reply to this thread.

~:"
 

Offline ale500

  • Frequent Contributor
  • **
  • Posts: 288
Re: Lattice Diamond program FTDI issue
« Reply #3 on: January 02, 2016, 01:39:58 am »
That I read, but how about your usb configuration ? which ftdi module is being loaded ? (The usb issues are also present with altera's ByteBlaster as as usual Ubuntu is not officially supported but you can find how to do the usb configuration. I used to try this in CentOS having Diamond doing almost one try and then having to reboot to be able to try to program again, I didn't know at the time that ftdi_sio trick. That's why I suggested it.
 

Offline peepo

  • Contributor
  • Posts: 11
  • Country: gb
Re: Lattice Diamond program FTDI issue
« Reply #4 on: January 02, 2016, 03:31:49 am »
okay thanks,
please list the tests you would like me to make,
ie to define and confirm why programming is broken.

brief notes:

Diamond 'Detect Cable'  is not showing USB2 option, though HW-USBN-2B (FTDI) is showing

I have set up udev rules and removed  ftdi_sio

I also made link to Diamond libftd2xx.so
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf