Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobrosenthal/6020fff12f38df99e1ad08f2911e2bf0 to your computer and use it in GitHub Desktop.
Save jacobrosenthal/6020fff12f38df99e1ad08f2911e2bf0 to your computer and use it in GitHub Desktop.
atsamd51 cargo flash
jacob@j:~/Downloads/atsamd/boards/pygamer (tfmicro)$ cargo flash --example blinky_basic --release --chip ATSAMD51J19A --log trace
Finished release [optimized + debuginfo] target(s) in 0.11s
DEBUG cargo_project > Project::query(path=/home/jacob/Downloads/atsamd/boards/pygamer): root=/home/jacob/Downloads/atsamd/boards/pygamer
DEBUG cargo_project > workspace search: cwd=/home/jacob/Downloads/atsamd/boards
Flashing /home/jacob/Downloads/atsamd/boards/pygamer/target/thumbv7em-none-eabihf/release/examples/blinky_basic
DEBUG jaylink > libusb 1.0.23.11397
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 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
TRACE jaylink > active configuration descriptor: ConfigDescriptor {
bLength: 0x9,
bDescriptorType: 0x2,
wTotalLength: 0x20,
bNumInterfaces: 0x1,
bConfigurationValue: 0x1,
iConfiguration: 0x4,
bmAttributes: 0x80,
bMaxPower: 0x32,
extra: None,
}
TRACE jaylink > interface #1 descriptors:
TRACE jaylink > InterfaceDescriptor {
bLength: 0x9,
bDescriptorType: 0x4,
bInterfaceNumber: 0x0,
bAlternateSetting: 0x0,
bNumEndpoints: 0x2,
bInterfaceClass: 0xff,
bInterfaceSubClass: 0xff,
bInterfaceProtocol: 0xff,
iInterface: 0x5,
}
TRACE jaylink > endpoint descriptors: [
EndpointDescriptor {
bLength: 0x7,
bDescriptorType: 0x5,
bEndpointAddress: 0x81,
bmAttributes: 0x2,
wMaxPacketSize: 0x40,
bInterval: 0x1,
},
EndpointDescriptor {
bLength: 0x7,
bDescriptorType: 0x5,
bEndpointAddress: 0x2,
bmAttributes: 0x2,
wMaxPacketSize: 0x40,
bInterval: 0x1,
},
]
DEBUG jaylink > J-Link interface is #0
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
TRACE jaylink > active configuration descriptor: ConfigDescriptor {
bLength: 0x9,
bDescriptorType: 0x2,
wTotalLength: 0x20,
bNumInterfaces: 0x1,
bConfigurationValue: 0x1,
iConfiguration: 0x4,
bmAttributes: 0x80,
bMaxPower: 0x32,
extra: None,
}
TRACE jaylink > interface #1 descriptors:
TRACE jaylink > InterfaceDescriptor {
bLength: 0x9,
bDescriptorType: 0x4,
bInterfaceNumber: 0x0,
bAlternateSetting: 0x0,
bNumEndpoints: 0x2,
bInterfaceClass: 0xff,
bInterfaceSubClass: 0xff,
bInterfaceProtocol: 0xff,
iInterface: 0x5,
}
TRACE jaylink > endpoint descriptors: [
EndpointDescriptor {
bLength: 0x7,
bDescriptorType: 0x5,
bEndpointAddress: 0x81,
bmAttributes: 0x2,
wMaxPacketSize: 0x40,
bInterval: 0x1,
},
EndpointDescriptor {
bLength: 0x7,
bDescriptorType: 0x5,
bEndpointAddress: 0x2,
bmAttributes: 0x2,
wMaxPacketSize: 0x40,
bInterval: 0x1,
},
]
DEBUG jaylink > J-Link interface is #0
TRACE jaylink > write 1 bytes: [e8]
TRACE jaylink > read 4 bytes: [33, 5a, ea, b8]
DEBUG jaylink > legacy caps: GET_HW_VERSION | READ_CONFIG | WRITE_CONFIG | SPEED_INFO | GET_MAX_BLOCK_SIZE | GET_HW_INFO | RESET_STOP_TIMED | SELECT_IF | GET_COUNTERS | GET_CPU_CAPS | EXEC_CPU_CMD | SWO | REGISTER | INDICATORS | TEST_NET_SPEED | GET_CAPS_EX
TRACE jaylink > write 1 bytes: [ed]
TRACE jaylink > read 32 bytes: [33, 5a, ea, b8, 1c, 7c, b0, 46, 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 | READ_CONFIG | WRITE_CONFIG | SPEED_INFO | GET_MAX_BLOCK_SIZE | GET_HW_INFO | RESET_STOP_TIMED | SELECT_IF | GET_COUNTERS | GET_CPU_CAPS | EXEC_CPU_CMD | SWO | REGISTER | INDICATORS | TEST_NET_SPEED | GET_CAPS_EX
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [83, 0, 0, 0]
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [83, 0, 0, 0]
TRACE jaylink > write 2 bytes: [c7, 1]
TRACE jaylink > read 4 bytes: [1, 0, 0, 0]
INFO cargo_flash > Protocol speed 0 kHz
DEBUG probe_rs::probe::jlink > Attaching to J-Link
TRACE jaylink > write 2 bytes: [c7, ff]
TRACE jaylink > read 4 bytes: [83, 0, 0, 0]
DEBUG probe_rs::probe::jlink > Attaching with protocol 'SWD'
INFO probe_rs::probe::jlink > J-Link: S/N: 801002709
DEBUG probe_rs::probe::jlink > J-Link: Capabilities: GET_HW_VERSION | READ_CONFIG | WRITE_CONFIG | SPEED_INFO | GET_MAX_BLOCK_SIZE | GET_HW_INFO | RESET_STOP_TIMED | SELECT_IF | GET_COUNTERS | GET_CPU_CAPS | EXEC_CPU_CMD | SWO | REGISTER | INDICATORS | TEST_NET_SPEED | GET_CAPS_EX
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, 45, 44, 55, 20, 4d, 69, 6e, 69, 20, 56, 31, 20, 63, 6f, 6d, 70, 69, 6c, 65, 64, 20, 44, 65, 63, 20, 31, 31, 20, 32, 30, 31, 39, 20, 31, 37, 3a, 31, 33, 3a, 30, 34, 0, 43, 6f, 70, 79, 72, 69, 67, 68, 74, 20, 32, 30, 31, 36, 2d, 32, 30, 31, 36, 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, 0, 0]
INFO probe_rs::probe::jlink > J-Link: Firmware version: J-Link EDU Mini V1 compiled Dec 11 2019 17:13:04
TRACE jaylink > write 1 bytes: [f0]
TRACE jaylink > read 4 bytes: [10, 27, 0, 0]
INFO probe_rs::probe::jlink > J-Link: Hardware version: JLink 1.0.0
TRACE jaylink > write 1 bytes: [7]
TRACE jaylink > read 8 bytes: [e3, c, 0, 0, 1, 1, 1, ff]
INFO probe_rs::probe::jlink > J-Link: Target voltage: 3.30 V
TRACE jaylink > write 44 bytes: [cf, 0, 9a, 0, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, ff, 3, ff, ff, ff, ff, ff, ff, ff, ff, 9e, e7, ff, ff, ff, ff, ff, ff, ff, ff, 0, 0]
TRACE jaylink > read 21 bytes: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
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 ATSAMD51J19A
DEBUG probe_rs::flashing::download > Found loadable segment.
INFO probe_rs::flashing::download > Found 3 loadable sections:
INFO probe_rs::flashing::download > .vector_table at 00004000 (608 byte0)
INFO probe_rs::flashing::download > .text at 00004260 (1480 byte0)
INFO probe_rs::flashing::download > .rodata at 00004828 (116 byte0)
DEBUG probe_rs::flashing::loader > Using builder for region (0x00000000..0x00080000)
DEBUG probe_rs::flashing::loader > Algorithm atsamd51_512 - start: 0x000000 - size: 0x080000
DEBUG probe_rs::flashing::loader > Algorithms: [RawFlashAlgorithm { name: "atsamd51_512", description: "atsamd51 512kb flash", default: true, instructions: [1, 33, 137, 7, 138, 107, 82, 7, 1, 213, 33, 74, 10, 96, 207, 34, 32, 73, 18, 2, 10, 128, 78, 34, 10, 130, 31, 73, 73, 68, 8, 96, 0, 32, 112, 71, 0, 32, 112, 71, 26, 73, 72, 97, 27, 74, 138, 128, 74, 138, 210, 7, 252, 208, 72, 97, 24, 72, 17, 56, 136, 128, 72, 138, 192, 7, 252, 208, 8, 138, 78, 33, 8, 64, 0, 208, 1, 32, 112, 71, 48, 181, 18, 75, 15, 76, 219, 28, 163, 128, 99, 138, 219, 7, 252, 208, 201, 28, 137, 8, 3, 70, 137, 0, 2, 224, 32, 202, 9, 31, 32, 195, 0, 41, 250, 209, 96, 97, 9, 72, 15, 56, 160, 128, 96, 138, 192, 7, 252, 208, 32, 138, 78, 33, 8, 64, 0, 208, 1, 32, 48, 189, 0, 0, 34, 0, 1, 0, 0, 64, 0, 65, 4, 0, 0, 0, 18, 165, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], pc_init: Some(1), pc_uninit: Some(37), pc_program_page: 81, pc_erase_sector: 41, pc_erase_all: None, data_section_offset: 160, flash_properties: FlashProperties { address_range: 0..524288, page_size: 512, erased_byte_value: 255, program_page_timeout: 100, erase_sector_timeout: 1000, sectors: [SectorDescription { size: 8192, address: 0 }] } }]
TRACE probe_rs::flashing::builder > Added Sector (0x00004000..0x00006000)
TRACE probe_rs::flashing::builder > Added Page (0x00004000..0x00004200)
TRACE probe_rs::flashing::builder > Added Page (0x00004200..0x00004400)
TRACE probe_rs::flashing::builder > Added Page (0x00004400..0x00004600)
TRACE probe_rs::flashing::builder > Added Page (0x00004600..0x00004800)
TRACE probe_rs::flashing::builder > Added Page (0x00004800..0x00004a00)
DEBUG probe_rs::flashing::flasher > Full Chip Erase enabled: false
DEBUG probe_rs::flashing::flasher > Double Buffering enabled: false
DEBUG probe_rs::flashing::flasher > Initializing the flash algorithm.
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 94, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, e4, 8e, 2, 74, 5, 0]
TRACE probe_rs::probe::jlink > DAP read 731911287.
DEBUG probe_rs::architecture::arm::communication_interface > Debug Port version: DPv1
DEBUG probe_rs::architecture::arm::communication_interface > Reading DP register DPIDR
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 94, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, e4, 8e, 2, 74, 5, 0]
TRACE probe_rs::probe::jlink > DAP read 731911287.
DEBUG probe_rs::architecture::arm::communication_interface > Read DP register DPIDR, value=0x2ba01477
DEBUG probe_rs::architecture::arm::communication_interface > DebugPort ID: DebugPortId {
revision: 0x2,
part_no: 0xba,
version: DPv1,
min_dp_support: NotImplemented,
designer: JEP106Code({ cc: 0x04, id: 0x3b } => Some("ARM Ltd")),
}
DEBUG probe_rs::architecture::arm::communication_interface > Writing DP register ABORT, value=0x0000003c
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 4, 2, 1e, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing DP register SELECT, value=0x00000000
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, c4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Requesting debug power
DEBUG probe_rs::architecture::arm::communication_interface > Writing DP register CTRL/STAT, value=0x50000000
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, a4, 2, 0, 0, 0, 28]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading DP register CTRL/STAT
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 34, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 4, 8, 0, 0, 7e, 0]
TRACE probe_rs::probe::jlink > DAP read 4026531904.
DEBUG probe_rs::architecture::arm::communication_interface > Read DP register CTRL/STAT, value=0xf0000040
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000010
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 8, 0, 80, b1]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register CSW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 1c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 4, 0, 0, 0, 0, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 4, a, 0, 60, 64, 0]
TRACE probe_rs::probe::jlink > DAP read 587202640.
DEBUG probe_rs::architecture::arm::communication_interface > Read register CSW, value=0x23000050
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDF0
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, f8, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 4, a, 0, 60, 64, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 40, 60, 0]
TRACE probe_rs::probe::jlink > DAP read 33751043.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x02030003
DEBUG probe_rs::architecture::arm::core::m4 > Core was halted when connecting
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000ED30
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, 98, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 40, 60, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 4, 1, 0, 0, 60, 0]
TRACE probe_rs::probe::jlink > DAP read 8.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x00000008
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000ED30
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, 98, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register DRW, value=0x0000001F
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, ec, 82, f, 0, 0, 80]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::flashing::flasher > Halting core.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDF0
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, f8, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register DRW, value=0xA05F0003
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, ec, 82, 1, 80, 2f, 50]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDF0
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, f8, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 4, 1, 0, 0, 60, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP read 196611.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x00030003
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDF0
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, f8, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 0, 0, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP read 196611.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x00030003
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000ED30
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, 98, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 0, 0, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 24, 0, 0, 0, 60, 0]
TRACE probe_rs::probe::jlink > DAP read 1.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x00000001
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000ED30
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, 98, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register DRW, value=0x0000001F
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, ec, 82, f, 0, 0, 80]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
WARN probe_rs::architecture::arm::core::m4 > Reason for halt has changed, old reason was Halted(Exception), new reason is Request
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDF4
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, fa, 76, 0, 70]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register DRW, value=0x0000000F
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, ec, 82, 7, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDF0
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, f8, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 24, 0, 0, 0, 60, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP read 196611.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x00030003
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDF8
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, fc, 76, 0, 70]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 0, 0, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 84, ad, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP read 1388.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x0000056c
DEBUG probe_rs::flashing::flasher > PC = 0x0000056c
DEBUG probe_rs::flashing::flasher > Reset and halt
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDF0
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, f8, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 84, ad, 0, 0, 0, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP read 196611.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x00030003
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000EDFC
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, fe, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Reading register DRW
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 7c, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 64, 0, 60, 0, 0, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, f4, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, 24, 0, 0, 0, 60, 0]
TRACE probe_rs::probe::jlink > DAP read 1.
DEBUG probe_rs::architecture::arm::communication_interface > Read register DRW, value=0x00000001
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register TAR, value=0xE000ED0C
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 2c, 2, 86, 76, 0, f0]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register DRW, value=0x05FA0004
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, ec, 2, 2, 0, fd, 82]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 44, 0, 0, 0, 0, 0]
TRACE probe_rs::probe::jlink > DAP wrote 0.
DEBUG probe_rs::architecture::arm::communication_interface > Writing register CSW, value=0x63000012
TRACE jaylink > write 16 bytes: [cf, 0, 30, 0, ff, 83, ff, ff, ff, ff, 8c, 2, 9, 0, 80, 31]
TRACE jaylink > read 7 bytes: [0, 70, 0, 0, 0, 0, 0]
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 34, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, fc, ff, ff, ff, 7f, 0]
DEBUG probe_rs::probe::jlink > DAP line busy, retries remaining 4.
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 34, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, fc, ff, ff, ff, 7f, 0]
DEBUG probe_rs::probe::jlink > DAP line busy, retries remaining 3.
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 34, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, fc, ff, ff, ff, 7f, 0]
DEBUG probe_rs::probe::jlink > DAP line busy, retries remaining 2.
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 34, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, fc, ff, ff, ff, 7f, 0]
DEBUG probe_rs::probe::jlink > DAP line busy, retries remaining 1.
TRACE jaylink > write 16 bytes: [cf, 0, 2f, 0, ff, 3, 0, 0, 0, 0, 34, 2, 0, 0, 0, 0]
TRACE jaylink > read 7 bytes: [0, fc, ff, ff, ff, 7f, 0]
DEBUG probe_rs::probe::jlink > DAP line busy, retries remaining 0.
ERROR probe_rs::probe::jlink > DAP read timeout.
Erasing sectors ✔ [00:00:00] [-----------------] 0B/ 8.00KB @ 0B/s (eta 0s )
Programming pages ✔ [00:00:00] [-----------------] 0B/ 2.50KB @ 0B/s (eta 0s )
Error failed to flash /home/jacob/Downloads/atsamd/boards/pygamer/target/thumbv7em-none-eabihf/release/examples/blinky_basic
Caused by:
0: Error while flashing
1: Something during the interaction with the core went wrong
2: A core architecture specific error occured
3: Failed to write register CSW at address 0x00000000 because: Operation timed out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment