Hi, I am a user of pyOCD, and I am having an issue related to pyusb which is what the former uses for talking to the USB device. The situation is that I need to use pyOCD through an eclipse plugin. Eclipse launches pyocd-gdbserver and normal user. But it will only work if launched as root.
My question is, how can I make pysb do its job without requiring root permissions? Here is the error I get when launching pyocd-gdbserver as normal user. The last lines suggests its pyusb having issues: uncaught exception: The device has no langid Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/pyOCD/tools/gdb_server.py", line 262, in run frequency=self.args.frequency) File "build/bdist.linux-x86_64/egg/pyOCD/board/mbed_board.py", line 210, in chooseBoard target_override, frequency) File "build/bdist.linux-x86_64/egg/pyOCD/board/mbed_board.py", line 182, in getAllConnectedBoards connected_daps = dap_class.get_connected_devices() File "build/bdist.linux-x86_64/egg/pyOCD/pyDAPAccess/dap_access_cmsis_dap.py", line 352, in get_connected_devices all_interfaces = _get_interfaces() File "build/bdist.linux-x86_64/egg/pyOCD/pyDAPAccess/dap_access_cmsis_dap.py", line 44, in _get_interfaces return INTERFACE[usb_backend].getAllConnectedInterface() File "build/bdist.linux-x86_64/egg/pyOCD/pyDAPAccess/interface/pyusb_backend.py", line 88, in getAllConnectedInterface product = board.product File "/usr/lib/python2.7/site-packages/usb/core.py", line 841, in product self._product = util.get_string(self, self.iProduct) File "/usr/lib/python2.7/site-packages/usb/util.py", line 314, in get_string raise ValueError("The device has no langid") ValueError: The device has no langid Please let me know if there are any workarounds to make pyusb work without requiring root privilege. -- Thanks and Regards, Aurabindo J ------------------------------------------------------------------------------ _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users