EEVblog Electronics Community Forum
Electronics => Microcontrollers => Topic started by: peepo 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
-
Did you read this thread ? https://www.eevblog.com/forum/microcontrollers/lattice-diamond-is-making-me-sad/ (https://www.eevblog.com/forum/microcontrollers/lattice-diamond-is-making-me-sad/)
-
yes I read that thread ,
and left a reply asking followers to reply to this thread.
~:"
-
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.
-
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