Skip to content

Instantly share code, notes, and snippets.

@allexoll
Created March 1, 2021 22:01
Show Gist options
  • Save allexoll/43778c2f91ef394c7beebdcdc003f19b to your computer and use it in GitHub Desktop.
Save allexoll/43778c2f91ef394c7beebdcdc003f19b to your computer and use it in GitHub Desktop.
DPv0 silent fail probe-rs 0.10.0
Running `/Users/allexoll/Desktop/probe-rs/target/release/probe-rs-cli --version`
Probe-rs CLI 0.10.0
⋊> ~/D/p/cli on master ⨯ cargo run --release -- info 22:59:31
Finished release [optimized + debuginfo] target(s) in 0.27s
Running `/Users/allexoll/Desktop/probe-rs/target/release/probe-rs-cli info`
⋊> ~/D/p/cli on master ⨯ RUST_LOG=trace cargo run --release -- info 22:59:45
Finished release [optimized + debuginfo] target(s) in 0.15s
Running `/Users/allexoll/Desktop/probe-rs/target/release/probe-rs-cli info`
DEBUG jaylink > libusb 1.0.24.11584
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: false
DEBUG jaylink > libusb has hotplug support: true
DEBUG jaylink > libusb can detach kernel driver: false
DEBUG jaylink > open_usb: device descriptor: DeviceDescriptor {
bLength: 0x12,
bDescriptorType: 0x1,
bcdUSB: 0x200,
bDeviceClass: 0xef,
bDeviceSubClass: 0x2,
bDeviceProtocol: 0x1,
bMaxPacketSize: 0x40,
idVendor: 0x1366,
idProduct: 0x105,
bcdDevice: 0x100,
iManufacturer: 0x1,
iProduct: 0x2,
iSerialNumber: 0x3,
bNumConfigurations: 0x1,
}
DEBUG jaylink > scanning 3 interfaces
TRACE jaylink > active configuration descriptor: ConfigDescriptor {
bLength: 0x9,
bDescriptorType: 0x2,
wTotalLength: 0x62,
bNumInterfaces: 0x3,
bConfigurationValue: 0x1,
iConfiguration: 0x4,
bmAttributes: 0x80,
bMaxPower: 0x32,
extra: Some(
[
0x8,
0xb,
0x0,
0x2,
0x2,
0x2,
0x0,
0x5,
],
),
}
TRACE jaylink > interface #1 descriptors:
TRACE jaylink > InterfaceDescriptor {
bLength: 0x9,
bDescriptorType: 0x4,
bInterfaceNumber: 0x0,
bAlternateSetting: 0x0,
bNumEndpoints: 0x1,
bInterfaceClass: 0x2,
bInterfaceSubClass: 0x2,
bInterfaceProtocol: 0x1,
iInterface: 0x5,
}
TRACE jaylink > interface #2 descriptors:
TRACE jaylink > InterfaceDescriptor {
bLength: 0x9,
bDescriptorType: 0x4,
bInterfaceNumber: 0x1,
bAlternateSetting: 0x0,
bNumEndpoints: 0x2,
bInterfaceClass: 0xa,
bInterfaceSubClass: 0x0,
bInterfaceProtocol: 0x0,
iInterface: 0x6,
}
TRACE jaylink > interface #3 descriptors:
TRACE jaylink > InterfaceDescriptor {
bLength: 0x9,
bDescriptorType: 0x4,
bInterfaceNumber: 0x2,
bAlternateSetting: 0x0,
bNumEndpoints: 0x2,
bInterfaceClass: 0xff,
bInterfaceSubClass: 0xff,
bInterfaceProtocol: 0xff,
iInterface: 0x7,
}
TRACE jaylink > endpoint descriptors: [
EndpointDescriptor {
bLength: 0x7,
bDescriptorType: 0x5,
bEndpointAddress: 0x83,
bmAttributes: 0x2,
wMaxPacketSize: 0x200,
bInterval: 0x1,
},
EndpointDescriptor {
bLength: 0x7,
bDescriptorType: 0x5,
bEndpointAddress: 0x2,
bmAttributes: 0x2,
wMaxPacketSize: 0x200,
bInterval: 0x1,
},
]
DEBUG jaylink > J-Link interface is #2
DEBUG probe_rs::probe::daplink::tools > Device Bus 020 Device 013: ID 1366:0105
DEBUG probe_rs::probe::daplink::tools > No device matches
DEBUG probe_rs::probe::daplink::tools > Attempting to open 1366:0105 in CMSIS-DAP v1 mode
DEBUG probe_rs::probe::stlink::usb_interface > Acquired libusb context.
DEBUG jaylink > open_usb: device descriptor: DeviceDescriptor {
bLength: 0x12,
bDescriptorType: 0x1,
bcdUSB: 0x200,
bDeviceClass: 0xef,
bDeviceSubClass: 0x2,
bDeviceProtocol: 0x1,
bMaxPacketSize: 0x40,
idVendor: 0x1366,
idProduct: 0x105,
bcdDevice: 0x100,
iManufacturer: 0x1,
iProduct: 0x2,
iSerialNumber: 0x3,
bNumConfigurations: 0x1,
}
DEBUG jaylink > scanning 3 interfaces
TRACE jaylink > active configuration descriptor: ConfigDescriptor {
bLength: 0x9,
bDescriptorType: 0x2,
wTotalLength: 0x62,
bNumInterfaces: 0x3,
bConfigurationValue: 0x1,
iConfiguration: 0x4,
bmAttributes: 0x80,
bMaxPower: 0x32,
extra: Some(
[
0x8,
0xb,
0x0,
0x2,
0x2,
0x2,
0x0,
0x5,
],
),
}
TRACE jaylink > interface #1 descriptors:
TRACE jaylink > InterfaceDescriptor {
bLength: 0x9,
bDescriptorType: 0x4,
bInterfaceNumber: 0x0,
bAlternateSetting: 0x0,
bNumEndpoints: 0x1,
bInterfaceClass: 0x2,
bInterfaceSubClass: 0x2,
bInterfaceProtocol: 0x1,
iInterface: 0x5,
}
TRACE jaylink > interface #2 descriptors:
TRACE jaylink > InterfaceDescriptor {
bLength: 0x9,
bDescriptorType: 0x4,
bInterfaceNumber: 0x1,
bAlternateSetting: 0x0,
bNumEndpoints: 0x2,
bInterfaceClass: 0xa,
bInterfaceSubClass: 0x0,
bInterfaceProtocol: 0x0,
iInterface: 0x6,
}
TRACE jaylink > interface #3 descriptors:
TRACE jaylink > InterfaceDescriptor {
bLength: 0x9,
bDescriptorType: 0x4,
bInterfaceNumber: 0x2,
bAlternateSetting: 0x0,
bNumEndpoints: 0x2,
bInterfaceClass: 0xff,
bInterfaceSubClass: 0xff,
bInterfaceProtocol: 0xff,
iInterface: 0x7,
}
TRACE jaylink > endpoint descriptors: [
EndpointDescriptor {
bLength: 0x7,
bDescriptorType: 0x5,
bEndpointAddress: 0x83,
bmAttributes: 0x2,
wMaxPacketSize: 0x200,
bInterval: 0x1,
},
EndpointDescriptor {
bLength: 0x7,
bDescriptorType: 0x5,
bEndpointAddress: 0x2,
bmAttributes: 0x2,
wMaxPacketSize: 0x200,
bInterval: 0x1,
},
]
DEBUG jaylink > J-Link interface is #2
TRACE jaylink > write 1 bytes: [e8]
TRACE jaylink > read 4 bytes: [bf, 7b, ff, b9]
DEBUG jaylink > legacy caps: GET_HW_VERSION | WRITE_DCC | ADAPTIVE_CLOCKING | READ_CONFIG | WRITE_CONFIG | WRITE_MEM | READ_MEM | SPEED_INFO | GET_MAX_BLOCK_SIZE | GET_HW_INFO | SET_KS_POWER | RESET_STOP_TIMED | MEASURE_RTCK_REACT | SELECT_IF | RW_MEM_ARM79 | GET_COUNTERS | READ_DCC | GET_CPU_CAPS | EXEC_CPU_CMD | SWO | WRITE_DCC_EX | REGISTER | INDICATORS | TEST_NET_SPEED | GET_CAPS_EX
TRACE jaylink > write 1 bytes: [ed]
TRACE jaylink > read 32 bytes: [bf, 7b, ff, b9, d, 3c, 1, 40, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
DEBUG jaylink > extended caps: GET_HW_VERSION | WRITE_DCC | ADAPTIVE_CLOCKING | READ_CONFIG | WRITE_CONFIG | WRITE_MEM | READ_MEM | SPEED_INFO | GET_MAX_BLOCK_SIZE | GET_HW_INFO | SET_KS_POWER | RESET_STOP_TIMED | MEASURE_RTCK_REACT | SELECT_IF | RW_MEM_ARM79 | GET_COUNTERS | READ_DCC | GET_CPU_CAPS | EXEC_CPU_CMD | SWO | WRITE_DCC_EX | REGISTER | INDICATORS | TEST_NET_SPEED | GET_CAPS_EX | HW_JTAG_WRITE
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [3, 0, 0, 0]
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [3, 0, 0, 0]
TRACE jaylink > write 2 bytes: [c7, 0]
TRACE jaylink > read 4 bytes: [0, 0, 0, 0]
DEBUG probe_rs::probe::jlink > Attaching to J-Link
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [3, 0, 0, 0]
DEBUG probe_rs::probe::jlink > Attaching with protocol 'JTAG'
INFO probe_rs::probe::jlink > J-Link: S/N: 722121099
DEBUG probe_rs::probe::jlink > J-Link: Capabilities: GET_HW_VERSION | WRITE_DCC | ADAPTIVE_CLOCKING | READ_CONFIG | WRITE_CONFIG | WRITE_MEM | READ_MEM | SPEED_INFO | GET_MAX_BLOCK_SIZE | GET_HW_INFO | SET_KS_POWER | RESET_STOP_TIMED | MEASURE_RTCK_REACT | SELECT_IF | RW_MEM_ARM79 | GET_COUNTERS | READ_DCC | GET_CPU_CAPS | EXEC_CPU_CMD | SWO | WRITE_DCC_EX | REGISTER | INDICATORS | TEST_NET_SPEED | GET_CAPS_EX | HW_JTAG_WRITE
TRACE jaylink > write 1 bytes: [1]
TRACE jaylink > read 2 bytes: [70, 0]
TRACE jaylink > read 112 bytes: [4a, 2d, 4c, 69, 6e, 6b, 20, 4c, 50, 43, 58, 70, 72, 65, 73, 73, 6f, 20, 56, 32, 20, 63, 6f, 6d, 70, 69, 6c, 65, 64, 20, 41, 70, 72, 20, 20, 34, 20, 32, 30, 31, 39, 20, 31, 36, 3a, 35, 34, 3a, 30, 33, 0, 43, 6f, 70, 79, 72, 69, 67, 68, 74, 20, 32, 30, 30, 33, 2d, 32, 30, 31, 34, 20, 53, 45, 47, 47, 45, 52, 3a, 20, 77, 77, 77, 2e, 73, 65, 67, 67, 65, 72, 2e, 63, 6f, 6d, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
INFO probe_rs::probe::jlink > J-Link: Firmware version: J-Link LPCXpresso V2 compiled Apr 4 2019 16:54:03
TRACE jaylink > write 1 bytes: [f0]
TRACE jaylink > read 4 bytes: [d0, 11, 22, 1]
INFO probe_rs::probe::jlink > J-Link: Hardware version: 109.0.0
TRACE jaylink > write 1 bytes: [7]
TRACE jaylink > read 8 bytes: [e4, c, 1, 0, 1, 0, 1, 1]
INFO probe_rs::probe::jlink > J-Link: Target voltage: 3.30 V
DEBUG probe_rs::probe::jlink > Resetting JTAG chain using trst
TRACE jaylink > write 1 bytes: [2]
DEBUG probe_rs::probe::jlink > Resetting JTAG chain by setting tms high for 32 bits
TRACE jaylink > write 6 bytes: [cf, 2d, 8, 0, 1f, 0]
TRACE jaylink > Reading 1 antwort bytes
TRACE jaylink > read 2 bytes: [1f, 1]
WARN probe_rs_cli::info > Error identifying target using protocol JTAG: An error with the usage of the probe occured
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [3, 0, 0, 0]
TRACE jaylink > write 2 bytes: [c7, 1]
TRACE jaylink > read 4 bytes: [0, 0, 0, 0]
DEBUG probe_rs::probe::jlink > Attaching to J-Link
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [3, 0, 0, 0]
DEBUG probe_rs::probe::jlink > Attaching with protocol 'SWD'
INFO probe_rs::probe::jlink > J-Link: S/N: 722121099
DEBUG probe_rs::probe::jlink > J-Link: Capabilities: GET_HW_VERSION | WRITE_DCC | ADAPTIVE_CLOCKING | READ_CONFIG | WRITE_CONFIG | WRITE_MEM | READ_MEM | SPEED_INFO | GET_MAX_BLOCK_SIZE | GET_HW_INFO | SET_KS_POWER | RESET_STOP_TIMED | MEASURE_RTCK_REACT | SELECT_IF | RW_MEM_ARM79 | GET_COUNTERS | READ_DCC | GET_CPU_CAPS | EXEC_CPU_CMD | SWO | WRITE_DCC_EX | REGISTER | INDICATORS | TEST_NET_SPEED | GET_CAPS_EX | HW_JTAG_WRITE
TRACE jaylink > write 1 bytes: [1]
TRACE jaylink > read 2 bytes: [70, 0]
TRACE jaylink > read 112 bytes: [4a, 2d, 4c, 69, 6e, 6b, 20, 4c, 50, 43, 58, 70, 72, 65, 73, 73, 6f, 20, 56, 32, 20, 63, 6f, 6d, 70, 69, 6c, 65, 64, 20, 41, 70, 72, 20, 20, 34, 20, 32, 30, 31, 39, 20, 31, 36, 3a, 35, 34, 3a, 30, 33, 0, 43, 6f, 70, 79, 72, 69, 67, 68, 74, 20, 32, 30, 30, 33, 2d, 32, 30, 31, 34, 20, 53, 45, 47, 47, 45, 52, 3a, 20, 77, 77, 77, 2e, 73, 65, 67, 67, 65, 72, 2e, 63, 6f, 6d, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
INFO probe_rs::probe::jlink > J-Link: Firmware version: J-Link LPCXpresso V2 compiled Apr 4 2019 16:54:03
TRACE jaylink > write 1 bytes: [f0]
TRACE jaylink > read 4 bytes: [d0, 11, 22, 1]
INFO probe_rs::probe::jlink > J-Link: Hardware version: 109.0.0
TRACE jaylink > write 1 bytes: [7]
TRACE jaylink > read 8 bytes: [e4, c, 0, 0, 1, 1, 1, 1]
INFO probe_rs::probe::jlink > J-Link: Target voltage: 3.30 V
TRACE jaylink > write 24 bytes: [cf, 0, 50, 0, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, 9e, e7]
TRACE jaylink > read 11 bytes: [ff, ff, ff, ff, ff, ff, ff, ff, 9e, e7, 0]
DEBUG probe_rs::probe::jlink::swd > Performing line reset!
TRACE jaylink > write 30 bytes: [cf, 0, 62, 0, ff, ff, ff, ff, ff, ff, ff, f, 0, 0, 0, 0, 0, ff, ff, ff, ff, ff, ff, 53, a, 0, 0, 0, 0, 0]
TRACE jaylink > read 14 bytes: [ff, ff, ff, ff, ff, ff, 53, 1a, 33, 0, 80, 1, 0, 0]
TRACE probe_rs::probe::jlink::swd > DAP read 50331750.
DEBUG probe_rs::probe::jlink > Sucessfully switched to SWD
DEBUG probe_rs::probe::jlink > Attached succesfully
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [3, 0, 0, 0]
DEBUG probe_rs::probe::jlink::swd > Performing 1 transfers (0 additional transfers)
TRACE jaylink > write 18 bytes: [cf, 0, 38, 0, ff, 3, 0, 0, 0, 0, ff, 94, 2, 0, 0, 0, 0, 0]
TRACE jaylink > read 8 bytes: [94, c6, c, 0, 60, 0, 0, 0]
TRACE probe_rs::probe::jlink::swd > DAP read 50331750.
DEBUG probe_rs::probe::jlink::swd > Transfer result 0: Ok(3000066)
DEBUG probe_rs::architecture::arm::communication_interface > Debug Port version: DPv0
DEBUG probe_rs::probe::jlink > Write IR: [16], len=5
TRACE probe_rs::probe::jlink > tms: [true, true, false, false, false, false, false, false, true, true, false]
TRACE probe_rs::probe::jlink > tdi: [false, false, false, false, false, false, false, false, true, false, false]
TRACE jaylink > write 2 bytes: [c7, 0]
TRACE jaylink > read 4 bytes: [1, 0, 0, 0]
TRACE jaylink > write 8 bytes: [cf, c6, 10, 0, 3, 3, 0, 1]
TRACE jaylink > Reading 2 antwort bytes
TRACE jaylink > read 3 bytes: [3, 3, 1]
⋊> ~/D/p/cli on master ⨯
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment