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 | |
} |