Comments (6)
Just booted a Linux machine here for testing this. Got the following:
Unable to open USB device: LIBUSB_ERROR_ACCESS
Unable to find any ICDI devices
Seems correct to me. I'm running ArchLinux. Which distro are you using?
from lm4tools.
Ops... sorry... wrong app!
from lm4tools.
Should be fixed now.
from lm4tools.
That will do. Probably better, if you inform user, why it failed (rc = -3 doesnt say that much) via perror().
from lm4tools.
The error is thrown by libusb_open(). A quick look at the docs din't mention it setting errno at all. So unless I either test it and confirm it or look at the libusb code there's no obvious way of knowing if it sets errno at all.
from lm4tools.
You are right, looking at the code, libusb_open() doesn't set errno. The simplest way I can think of is use non-zero return value (one of LIBUSB_ERROR*) and libusb_error_name.
from lm4tools.
Related Issues (19)
- Stuck Flashing HOT 21
- Can't compile on Debian Squeeze HOT 3
- Incorrect FSF address in license HOT 2
- No ICDI device found on some of the USB ports HOT 10
- Unable to open USB device: LIBUSB_ERROR_ACCESS HOT 5
- lm4flash hangs w/slow target SysClock HOT 1
- No ICDI device found HOT 1
- lmicdi hangs for a long time after "Calling handle_events()" HOT 5
- fopen: No such file or directory
- Add a `make install` target
- Support for selecting device by serial HOT 7
- Unable to find any ICDI devices (on beaglebone running debian 10) HOT 4
- Avoid hardcoding `/usr/local` in lmicdusb Makefile
- compile lm4flash under cygwin
- Track issues remaining till first release
- Suspect license of project0.bin HOT 1
- Unable to get device serial number HOT 19
- lm4f120_icdi.kext prevents device from listing in /dev/tty.* and /dev/cu.* HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lm4tools.