1source [find interface/cmsis-dap.cfg]
2transport select swd
3
4# chip name
5set CHIPNAME at91samd20j18
6set ENDIAN little
7set CPUTAPID 0x0bc11477
8
9source [find target/at91samdXX.cfg]
10
11reset_config trst_and_srst separate
12
13$_TARGETNAME configure -event gdb-attach {
14	echo "Debugger attaching: halting execution"
15	reset halt
16	gdb_breakpoint_override hard
17}
18
19$_TARGETNAME configure -event gdb-detach {
20	echo "Debugger detaching: resuming execution"
21	resume
22}
23