1source [find interface/jlink.cfg]
2
3transport select swd
4
5set CHIPNAME atsamd21g18a
6source [find target/at91samdXX.cfg]
7
8reset_config trst_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