6162 - How to solve "No Lattice cable detected on any port" and no detect cable on the GUI in newly installed Ubuntu 20.04.3?

6162 - How to solve "No Lattice cable detected on any port" and no detect cable on the GUI in newly installed Ubuntu 20.04.3?

The following procedures will serve as guide from the software installation process until the cable driver setup:
 
1. Install fresh Ubuntu 20.04.3 LTS.
2. Install Lattice Radiant.

If you encounter “xcb” error use the following commands:
  •  sudo apt-get install libxcb-input0
  • sudo apt-get install libxcb-xinerama0

3. Open Radiant Programmer using the command:

/<install path>/programmer/bin/lin64/programmer&

Note: at default the install path = /home/<username>/lscc/radiant/3.0/programmer/bin/lin64

4.A.  If libusb.so.1 error occurs, use the following command:

 

  •  sudo apt-get install libusb-0.1.4

 

4.B. If programmer does not recognize the usb cable:

 

Step 1: Giving HW-USBN-2B (FTDI) USB Drivers Read/Write Permission to Selected Individuals

1.       Plug in the USB cable.

2.       In the terminal, type:

lsusb

You should see an entry similar to the following:

> Bus 001 Device 002: ID 0403:6010 for Lattice HW-USBN-2B (FTDI) USB Download Cable

3.       This mean the FTDI chip is in Bus 001 and device 002. Go to the directory of the bus number

cd /dev/bus/usb/001

 

4.       Grant execute permissions to the device number. On the command line, type:

sudo chmod 755 002

 Note: If the specific grant permissions command is not working to your linux system try sudo chmod 777 <device#>. Example: sudo chmod 777 002.

5.       Unload the ftdi_sio driver if it is attached to your device.

sudo /sbin/rmmod ftdi_sio

 

6.       Unload the usbserial driver if it is attached to your device.

sudo /sbin/rmmod usbserial

 

Step 2: Driver Setup

Automated UDEV Method Configuration

1. Create an entry called “plugdev” in the /etc/group file, and then add

anyone logging into the system into that group.

a.       Make sure /usr/bin/id shows you as a member of the plugdev group. Log out if required.

b.       Make sure to save the group file after editing (you need to be root to edit the file)

Example:

plugdev:x:501:lmnapps

 

2. Type the following command to execute the script:

sudo <install_path>/data/vmdata/udevsetup_ubuntu

Example:

sudo /home/lscc/radiant/3.0/data/vmdata/udevsetup_ubuntu


5. Now try to open the programmer.
 
/<install path>/programmer/bin/lin64/programmer&