1source [find interface/jlink.cfg] 2 3transport select swd 4 5set CHIPNAME atsamd51g19a 6source [find target/atsame5x.cfg] 7 8# TODO(http://openocd.zylin.com/#/c/5706/): lower the clock speed to workaround 9# an erase timeout. 10adapter speed 500 11reset_config srst_only 12 13$_TARGETNAME configure -event gdb-attach { 14 echo "Debugger attaching: halting execution" 15 reset halt 16} 17 18$_TARGETNAME configure -event gdb-detach { 19 echo "Debugger detaching: resuming execution" 20 resume 21} 22