I'm trying to run pyocd with DAPLink on WSL2 (Ubuntu 20.04). I'm able to attach and identify the DAPLink but there appears to be a udev issue. When I try to list the probes I get a permission error:
0000653:WARNING:pyusb_backend:[Errno 13] Access denied (insufficient permissions) while trying to interrogate a USB device (VID=0d28 PID=0204). This can probably be remedied with a udev rule. See <https://github.com/pyocd/pyOCD/tree/master/udev> for help.
0000653:WARNING:pyusb_v2_backend:[Errno 13] Access denied (insufficient permissions) while trying to interrogate a USB device (VID=0d28 PID=0204). This can probably be remedied with a udev rule. See <https://github.com/pyocd/pyOCD/tree/master/udev> for help.
No available debug probes are connected
dbug: Microsoft.Extensions.Hosting.Internal.Host[1]
Hosting starting
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\Users\chadcoons
dbug: Microsoft.Extensions.Hosting.Internal.Host[2]
Hosting started
dbug: UsbIpServer.Server[0]
new connection from 172.19.158.27
dbug: UsbIpServer.ConnectedClient[0]
Received opcode: OP_REQ_IMPORT
info: UsbIpServer.ConnectedClient[1]
Client 172.19.158.27 claimed device at 2-1 (USB\VID_0D28&PID_0204\000000800E7F79D100000000000000000000000097969902).
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=81, flags=512, length=64, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 256 0 64
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=81, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 18, requested: 64
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=82, flags=512, length=18, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 256 0 18
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=82, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 18, requested: 18
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=83, flags=512, length=5, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 3840 0 5
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=83, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 5, requested: 5
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=84, flags=512, length=57, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 3840 0 57
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=84, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 57, requested: 57
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=85, flags=512, length=10, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 1536 0 10
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=85, pending count = 1
dbug: UsbIpServer.AttachedClient[0]
USBSUP_XFER_STALL -> EPIPE -> 0
trce: UsbIpServer.AttachedClient[0]
actual: 0, requested: 10
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=86, flags=512, length=10, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 1536 0 10
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=86, pending count = 1
dbug: UsbIpServer.AttachedClient[0]
USBSUP_XFER_STALL -> EPIPE -> 0
trce: UsbIpServer.AttachedClient[0]
actual: 0, requested: 10
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=87, flags=512, length=10, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 1536 0 10
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=87, pending count = 1
dbug: UsbIpServer.AttachedClient[0]
USBSUP_XFER_STALL -> EPIPE -> 0
trce: UsbIpServer.AttachedClient[0]
actual: 0, requested: 10
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=88, flags=512, length=9, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 512 0 9
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=88, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 9, requested: 9
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=89, flags=512, length=125, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 512 0 125
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=89, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 125, requested: 125
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=90, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 768 0 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=90, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 4, requested: 255
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=91, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 770 1033 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=91, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 36, requested: 255
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=92, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 769 1033 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=92, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 8, requested: 255
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=93, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 771 1033 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=93, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 98, requested: 255
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=94, flags=0, length=0, ep=0
dbug: UsbIpServer.AttachedClient[0]
Trapped SET_CONFIGURATION: 1
trce: UsbIpServer.AttachedClient[0]
actual: 0, requested: 0
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=95, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 772 1033 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=95, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 34, requested: 255
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=96, flags=0, length=7, ep=0
trce: UsbIpServer.AttachedClient[0]
33 32 0 0 7
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=96, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 7, requested: 7
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=97, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 773 1033 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=97, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 34, requested: 255
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=98, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 774 1033 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=98, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 26, requested: 255
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=99, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 775 1033 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=99, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 36, requested: 255
trce: UsbIpServer.AttachedClient[0]
USBIP_CMD_SUBMIT, seqnum=100, flags=512, length=255, ep=0
trce: UsbIpServer.AttachedClient[0]
128 6 777 1033 255
trce: UsbIpServer.AttachedClient[0]
Scheduled seqnum=100, pending count = 1
trce: UsbIpServer.AttachedClient[0]
actual: 26, requested: 255
info: UsbIpServer.ConnectedClient[2]
Client 172.19.158.27 released device at 2-1 (USB\VID_0D28&PID_0204\000000800E7F79D100000000000000000000000097969902).