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

0 Members and 1 Guest are viewing this topic.

Offline peepoTopic starter

  • Contributor
  • Posts: 11
  • Country: gb
Lattice Diamond program FTDI issue
« on: December 29, 2015, 04:32:22 pm »
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: 415
Re: Lattice Diamond program FTDI issue
« Reply #1 on: January 01, 2016, 06:56:29 am »
 

Offline peepoTopic starter

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

yes I read that thread ,

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

~:"
 

Offline ale500

  • Frequent Contributor
  • **
  • Posts: 415
Re: Lattice Diamond program FTDI issue
« Reply #3 on: January 01, 2016, 02:39:58 pm »
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 peepoTopic starter

  • Contributor
  • Posts: 11
  • Country: gb
Re: Lattice Diamond program FTDI issue
« Reply #4 on: January 01, 2016, 04:31:49 pm »
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