你好,我在按您分享的资料搭建环境,用Eclipse+GCC+jLINK编译没问题,但是调试还是有问题,提示如下:
0001993:WARNING:gdb_server:pyocd-gdbserver is deprecated; please use the new combined pyocd tool.
0002034:WARNING:common:STLink and CMSIS-DAPv2 probes are not supported because no libusb library was found.
0002441:ERROR:gdb_server:uncaught exception: No backend available
Traceback (most recent call last):
File "C:\Python\Python39\lib\site-packages\pyocd-0.22.1.dev701-py3.9.egg\pyocd\tools\gdb_server.py", line 278, in run
session = ConnectHelper.session_with_chosen_probe(
File "C:\Python\Python39\lib\site-packages\pyocd-0.22.1.dev701-py3.9.egg\pyocd\core\helpers.py", line 234, in session_with_chosen_probe
probe = ConnectHelper.choose_probe(
File "C:\Python\Python39\lib\site-packages\pyocd-0.22.1.dev701-py3.9.egg\pyocd\core\helpers.py", line 138, in choose_probe
allProbes = ConnectHelper.get_all_connected_probes(blocking=blocking, unique_id=unique_id)
File "C:\Python\Python39\lib\site-packages\pyocd-0.22.1.dev701-py3.9.egg\pyocd\core\helpers.py", line 82, in get_all_connected_probes
allProbes = DebugProbeAggregator.get_all_connected_probes(unique_id=unique_id)
File "C:\Python\Python39\lib\site-packages\pyocd-0.22.1.dev701-py3.9.egg\pyocd\probe\aggregator.py", line 64, in get_all_connected_probes
probes += cls.get_all_connected_probes(unique_id, is_explicit)
File "C:\Python\Python39\lib\site-packages\pyocd-0.22.1.dev701-py3.9.egg\pyocd\probe\picoprobe.py", line 335, in get_all_connected_probes
return [cls(dev) for dev in PicoLink.enumerate_picoprobes()]
File "C:\Python\Python39\lib\site-packages\pyocd-0.22.1.dev701-py3.9.egg\pyocd\probe\picoprobe.py", line 108, in enumerate_picoprobes
return [PicoLink(probe) for probe in core.find(find_all=True, custom_match=FindPicoprobe(uid))]
File "C:\Python\Python39\lib\site-packages\pyusb-1.1.1-py3.9.egg\usb\core.py", line 1299, in find
raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available