Skip to content

Instantly share code, notes, and snippets.

@pferreir

pferreir/log.txt Secret

Last active January 9, 2022 15:19
Show Gist options
  • Save pferreir/17569b8c280f789ace65587c7ea300fc to your computer and use it in GitHub Desktop.
Save pferreir/17569b8c280f789ace65587c7ea300fc to your computer and use it in GitHub Desktop.
$ RUST_LOG=trace probe-rs-cli info --probe c251:f001
TRACE probe_rs::probe::cmsisdap::tools > Attempting to open device matching c251:f001
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 002 Device 001: ID 1d6b:0003
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 001 Device 003: ID 0489:e0a2
TRACE probe_rs::probe::cmsisdap::tools > Error getting languages: Pipe
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 001 Device 002: ID 0bda:58f4
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 001 Device 007: ID c251:f001
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 001 Device 001: ID 1d6b:0002
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
DEBUG probe_rs::probe::cmsisdap::tools > Attempting to open c251:f001 in CMSIS-DAP v1 mode
Error: Failed to open the debug probe.
Caused by:
0: Probe could not be created
1: hidapi error: Permission denied
2: hidapi error: Permission denied
$ sudo lsusb -vv -d c251:f001
Bus 003 Device 002: ID c251:f001 Keil Software, Inc. CMSIS_DAP
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0xc251 Keil Software, Inc.
idProduct 0xf001
bcdDevice 1.00
iManufacturer 1 CMSIS-DAP by ARM
iProduct 2 CMSIS_DAP
iSerial 3 202108120001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x006b
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 2 Communications
bFunctionSubClass 2 Abstract (modem)
bFunctionProtocol 1 AT-commands (v.25ter)
iFunction 4 CMSIS-DAP CDC
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 0
iInterface 4 CMSIS-DAP CDC
CDC Header:
bcdCDC 1.10
CDC Call Management:
bmCapabilities 0x01
call management
bDataInterface 1
CDC ACM:
bmCapabilities 0x02
line coding and serial state
CDC Union:
bMasterInterface 0
bSlaveInterface 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 2
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 5 CMSIS-DAP DCI
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 6 CMSIS-DAP-QYF
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 33
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
[root@notyourlaptop midi]# RUST_LOG=trace /home/pedro/.cargo/bin/probe-rs-cli info --probe c251:f001
TRACE probe_rs::probe::cmsisdap::tools > Attempting to open device matching c251:f001
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 002 Device 001: ID 1d6b:0003
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 001 Device 003: ID 0489:e0a2
TRACE probe_rs::probe::cmsisdap::tools > Error getting languages: Pipe
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 001 Device 002: ID 0bda:58f4
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 001 Device 008: ID c251:f001
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 001 Device 001: ID 1d6b:0002
DEBUG probe_rs::probe::cmsisdap::tools > Attempting to open c251:f001 in CMSIS-DAP v1 mode
DEBUG probe_rs::probe::stlink::usb_interface > Acquired libusb context.
DEBUG jaylink > libusb 1.0.24.11584
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: true
DEBUG jaylink > libusb has hotplug support: true
DEBUG jaylink > libusb can detach kernel driver: true
DEBUG probe_rs::probe::espusbjtag::protocol > Acquired libusb context.
Error: Failed to open the debug probe.
Caused by:
0: Probe could not be created
1: Probe was not found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment