blob: 096e396efc5f9f688b9cc1e857bbf30028973eb5 [file] [log] [blame]
source [find interface/jlink.cfg]
transport select swd
set CHIPNAME atsamd51g19a
source [find target/atsame5x.cfg]
# TODO(http://openocd.zylin.com/#/c/5706/): lower the clock speed to workaround
# an erase timeout.
adapter_khz 500
reset_config srst_only
$_TARGETNAME configure -event gdb-attach {
echo "Debugger attaching: halting execution"
reset halt
}
$_TARGETNAME configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}