Skip to content

Instantly share code, notes, and snippets.

@xldenis
Created February 22, 2021 21:53
Show Gist options
  • Save xldenis/26a27aeb9e7819aa950a05969524a036 to your computer and use it in GitHub Desktop.
Save xldenis/26a27aeb9e7819aa950a05969524a036 to your computer and use it in GitHub Desktop.
λ(ada) samd21 → git master * RUST_LOG=debug cargo flash --chip ATSAMD21G18AU --elf ~/Code/zozo/uf2-samdx1/build/samd21mini/bootloader-samd21mini-3.12.0-4-g360feb0.elf
Flashing /Users/xavier/Code/zozo/uf2-samdx1/build/samd21mini/bootloader-samd21mini-3.12.0-4-g360feb0.elf
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: 0x0,
bDeviceSubClass: 0x0,
bDeviceProtocol: 0x0,
bMaxPacketSize: 0x40,
idVendor: 0x1366,
idProduct: 0x101,
bcdDevice: 0x100,
iManufacturer: 0x1,
iProduct: 0x2,
iSerialNumber: 0x3,
bNumConfigurations: 0x1,
}
DEBUG jaylink > scanning 1 interfaces
DEBUG jaylink > J-Link interface is #0
DEBUG probe_rs::probe::daplink::tools > Device Bus 020 Device 053: ID 1b4f:8d21
DEBUG probe_rs::probe::daplink::tools > No device matches
DEBUG probe_rs::probe::daplink::tools > Device Bus 020 Device 052: ID 05ac:1460
DEBUG probe_rs::probe::daplink::tools > No device matches
DEBUG probe_rs::probe::daplink::tools > Device Bus 020 Device 051: ID 05ac:100f
DEBUG probe_rs::probe::daplink::tools > No device matches
DEBUG probe_rs::probe::daplink::tools > Device Bus 020 Device 050: ID 1366:0101
DEBUG probe_rs::probe::daplink::tools > No device matches
DEBUG probe_rs::probe::daplink::tools > Device Bus 000 Device 001: ID 05ac:100e
DEBUG probe_rs::probe::daplink::tools > No device matches
DEBUG probe_rs::probe::daplink::tools > Attempting to open 1366:0101 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: 0x0,
bDeviceSubClass: 0x0,
bDeviceProtocol: 0x0,
bMaxPacketSize: 0x40,
idVendor: 0x1366,
idProduct: 0x101,
bcdDevice: 0x100,
iManufacturer: 0x1,
iProduct: 0x2,
iSerialNumber: 0x3,
bNumConfigurations: 0x1,
}
DEBUG jaylink > scanning 1 interfaces
DEBUG jaylink > J-Link interface is #0
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
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
INFO cargo_flash > Protocol speed 0 kHz
DEBUG probe_rs::probe::jlink > Attaching to J-Link
DEBUG probe_rs::probe::jlink > Attaching with protocol 'SWD'
INFO probe_rs::probe::jlink > J-Link: S/N: 260109763
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
INFO probe_rs::probe::jlink > J-Link: Firmware version: J-Link V10 compiled Feb 4 2021 12:58:41
INFO probe_rs::probe::jlink > J-Link: Hardware version: JLink 10.10.0
INFO probe_rs::probe::jlink > J-Link: Target voltage: 3.18 V
DEBUG probe_rs::probe::jlink > Sucessfully switched to SWD
DEBUG probe_rs::probe::jlink > Attached succesfully
DEBUG probe_rs::config::registry > Searching registry for chip with name ATSAMD21G18AU
INFO cargo_flash > The target seems to be unable to be attached to.
INFO cargo_flash > A hard reset during attaching might help. This will reset the entire chip.
INFO cargo_flash > Run with `--connect-under-reset` to enable this feature.
Error failed attaching to target
Caused by:
0: An error with the usage of the probe occured
1: An error specific to the selected architecture occured
2: Target device did not respond to request.
INFO cargo_flash > Metadata {
chip: Some(
"Unspecified(\"ATSAMD21G18AU\")",
),
probe: Some(
"JLink",
),
speed: Some(
"0",
),
release: "0.10.2",
commit: "crates.io",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment