pyOCD Debug Launch error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pyOCD Debug Launch error

1,303 Views
jayaura
Contributor II

Hi,

 

I have KDS 3.2.0 installed along with GNU ARM Eclipse Plugin on Linux (Fedora 24). I am getting an error when trying to debug the application through the USB with the dock.:

 

Traceback (most recent call last):   File "/usr/bin/pyocd-gdbserver", line 5, in <module>     from pkg_resources import load_entry_point   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2927, in <module>     @_call_aside   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside     f(*args, **kwargs)   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2952, in _initialize_master_working_set     add_activation_listener(lambda dist: dist.activate())   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 956, in subscribe     callback(dist)   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2952, in <lambda>     add_activation_listener(lambda dist: dist.activate())   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2513, in activate     for pkg in self._get_metadata('namespace_packages.txt'):   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2503, in _get_metadata     for line in self.get_metadata_lines(name):   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1477, in get_metadata_lines     return yield_lines(self.get_metadata(name))   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1469, in get_metadata     return self._get(self._fn(self.egg_info, name))   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1580, in _get     with open(path, 'rb') as stream: IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/protobuf-3.0.0b3-py2.7.egg/EGG-INFO/namespace_packages.txt'

 

I have pyOCD installed from the latest git, and available as /usr/bin/pyocd-gdbserver.

 

Please help me fix the issue.

Labels (1)
Tags (2)
4 Replies

938 Views
jayaura
Contributor II

This looks like a pyOCD issue, I've filed an issue at their github page pyocd binaries need sudo to work · Issue #259 · mbedmicro/pyOCD · GitHub

938 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Jay,

Thanks for reporting this issue with pyOCD in Linux.

Best Regards!

Carlos Mendoza

Technical Support Engineer

0 Kudos

938 Views
jayaura
Contributor II

Hi Carlos,

Thanks for the respose, but something needs to be done with the issue, since pyocd requires root to work, but eclipse does not launch pyocd with elevated previleges. So I cannot Debug / Flash from within eclipse. Issue seems to be pyusb, which pyocd uses. See pyocd connction error · Issue #241 · mbedmicro/pyOCD · GitHub

Please let me know if there is a way to run pyocd with root previlege from eclipse

0 Kudos

938 Views
jayaura
Contributor II

How do i know if this issue is specific to KDS or not? If its because of pyOCD, i should probably talk to GNU ARM eclipse developers. Any hint about that ?

0 Kudos