Open wangwang105 opened 1 year ago
Do you have udev configured correctly to allow access to the device? See https://pyocd.io/docs/faq.html#debug-probe-is-not-available Also make sure you are using the latest version of pyocd.
i ran 'cat /etc/udev/rules.d/'
output:
49-stlinkv1.rules 49-stlinkv2-1.rules 49-stlinkv2.rules 49-stlinkv3.rules 49-wch-link.rules 60-vboxadd.rules 70-snap.firefox.rules 70-snap.snapd-desktop-integration.rules 70-snap.snapd.rules 70-snap.snap-store.rules
There are rules, but there is still no way to recognize wch-link,hope you give me some suggestions~
Even with the udev rule file in place, I still think there is some issue with permissions. That's because lsusb
failed to open the device ("Couldn't open device, some information will be missing").
If you haven't restarted your system or udev since installing the rules, then that would explain this.
The rules in 49-wch-link.rules
will create a wch-link*
link under /dev
somewhere (I'm not a Linux user, so I don't exactly where it would appear). You can also look for 0666 permissions on the WCH-Link device file.
Beyond that, I'm not sure what it could be… you might have to do some debugging. The amount that I can help is limited since I don't have a WCH-Link. I do know other people are using it though since someone contributed a patch for pyocd to be able to see a WCH-Link.
It works well on my PCs, both windows and Ubuntu. I suffered such kind of thing. But I think you can avoid the problem via below actions,
It works well on my PCs, both windows and Ubuntu. I suffered such kind of thing. But I think you can avoid the problem via below actions,
1. Upgrade the FW to latest one. 2. Avoid use of Virtualbox, use raw Linux directly.
thanks for you advice. i will try what you suggested.
I saw the same problem( #1121)
in use Ubuntu (Linux w-VirtualBox 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux) When I run pyocd list, it just shows
No available debug probes are connected.
i ran
lsusb
on my ubuntu,output: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubi ran
lsusb -v
on my ubuntu,output:I hope you can fix it~~