lpcware

LPC Link2 (JLink firmware) on linux virtual machine not working anymore

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by fzfq3m on Sat Jun 21 11:30:00 MST 2014
Hi
I'm having issues with my LPC Link 2 with JLink firmware, to make a long history short: It was working but I messed up the OS and had to rebuild the virtual machine from scratch, now JLinkExe keeps saying that is unable to connect to the adapter through USB even if I run it with elevated privileges (sudo). I also tried using a different visualization package (was using vmware but also tried virtualbox) and different linux distros but no luck so far.

I also tried to downgrade the version of JLink software I'm using but after trying at least 5 older versions without being able to get it working I just stopped trying. One thing I noticed is that when issuing the command showemulist I got the following:

J-Link[0]: Connection: USB, Serial number: 0, ProductName: J-Link

As you can see the adapter is listed but JLinkExe fails to read the serial number, I can access adapter's info using "lsusb -v -d 1366:0101" and as you can see in following output it does retrieves the correct serial number

sudo lsusb -v -d 1366:0101

Bus 001 Device 003: ID 1366:0101 SEGGER J-Link ARM
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x1366 SEGGER
  idProduct          0x0101 J-Link ARM
  bcdDevice            1.00
  iManufacturer           1 SEGGER
  iProduct                2 J-Link
  iSerial                 3 000611000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)


I also tried using JLink selemu command but it won't work either.
The virtual machine is running Archlinux 64bits (tried with 32 bits too) with lattest Segger Jlink software V4.86a.
I not sure what's wrong (apart from me not being able to remember which version of Jlink software I was working with)
Hope you can help me
Thanks in advance

Outcomes