Unable to open USB device: LIBUSB_ERROR_ACCESS
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.
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.
It did work few times without root permission.
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.
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
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