lm4tools icon indicating copy to clipboard operation
lm4tools copied to clipboard

Unable to open USB device: LIBUSB_ERROR_ACCESS

Open akhilpo opened this issue 13 years ago • 5 comments

I am using Linux Mint on Windows 7 machine using VMware. Besides working perfectly for a few times, it always give me the following error:

akhilpo-virtual-machine ~/work/stellaris-work $ lm4flash blinky.bin
Unable to open USB device: LIBUSB_ERROR_ACCESS
Unable to find any ICDI devices

I tried reconnecting the device several times.

akhilpo avatar Dec 13 '12 12:12 akhilpo

Do you have the required permissions? Try running as root (sudo) and see if it works. If it does work running as root you need to setup the permissions for your user.

utzig avatar Dec 13 '12 12:12 utzig

It did work few times without root permission.

akhilpo avatar Dec 13 '12 12:12 akhilpo

When you disconnect/reconnect the device do you get the kernel messages (dmesg) ?

I don't have VMWare and have no idea how it works. Probably works as well as VirtualBox and Parallels. But either it is not mapping the USB device inside the VM (and you will see that running dmesg) or your user is being limited on permissions some way. Running as root, if it doesn't work, would mean the device is not mapping. If it does you should check why your user works sometimes and sometimes not.

utzig avatar Dec 13 '12 12:12 utzig

I tried giving Sudo few times. Now it works sometimes and sometimes gives this error:

akhilpo-virtual-machine ~/work/stellaris-work $ sudo lm4flash blinky.bin
Unable to get device serial number: LIBUSB_ERROR_TIMEOUT
Unable to find any ICDI devices

akhilpo avatar Dec 13 '12 12:12 akhilpo

So, I have a list of groups, but I don't know which of them should I add to my user. I thought it should be uucp, the group which points at /dev/ttyACM0 which in my case is my device, but still is not working, I have to run it with sudo. I'm using Arch btw

danfly09 avatar Feb 12 '17 15:02 danfly09