1# SPDX-License-Identifier: Apache-2.0
2
3source [find interface/jlink.cfg]
4
5transport select swd
6
7set CHIPNAME atsamd51p19
8
9source [find target/atsame5x.cfg]
10
11adapter speed 500
12reset_config srst_only
13
14$_TARGETNAME configure -event gdb-attach {
15	echo "Debugger attaching: halting execution"
16	reset halt
17}
18
19$_TARGETNAME configure -event gdb-detach {
20	echo "Debugger detaching: resuming execution"
21	resume
22}
23