|
From: Renaud C. <ren...@gm...> - 2017-04-18 12:17:05
|
Yes, I'm 100% sure this is not a permission issue as stated in the gnuarmeclipse issue: https://github.com/gnuarmeclipse/openocd/issues/12 I did some debug, and the `hid_enumerate()` doesn't returns that adapter when using the libusb backend. Switching to the hidraw backend fixed it. I didn't noticed anything wrong on the build script: https://github.com/gnuarmeclipse/build-scripts/blob/master/scripts/build-openocd.sh On Tue, Apr 18, 2017 at 8:10 AM Paul Fertser <fer...@gm...> wrote: > Hello, > > On Tue, Apr 18, 2017 at 11:23:31AM +0000, Renaud C. wrote: > > Is there any reasons to prefer the hidraw backend versus the libusb > concerning > > hidapi? I've noticed that Ubuntu is shipping openocd with the hidraw > backend. > > I've found that using the libusb backend, my CMSIS-DAP adapter is not > detected > > during the hid_enumerate() : > > I've tested OpenOCD with hidapi-libusb on OpenWrt and it was able to > detect my adapter nicely. Can you please make sure it's not a > permissions issue? I'd rather prefer to make libusb backend work or at > least to fully understand its limitations. > > -- > Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! > mailto:fer...@gm... > |