1source [find interface/jlink.cfg]
2
3transport select swd
4
5set CHIPNAME atsamd51p20a
6source [find target/atsame5x.cfg]
7
8reset_config srst_only
9
10$_TARGETNAME configure -event gdb-attach {
11        echo "Debugger attaching: halting execution"
12        reset halt
13}
14
15$_TARGETNAME configure -event gdb-detach {
16        echo "Debugger detaching: resuming execution"
17        resume
18}
19