1# Copyright (c) 2018 Bryan O'Donoghue
2# SPDX-License-Identifier: Apache-2.0
3source [find interface/cmsis-dap.cfg]
4transport select swd
5
6# chip name
7set CHIPNAME atsame54p20a
8set ENDIAN little
9set CPUTAPID 0x0bc11477
10
11source [find target/atsame5x.cfg]
12
13reset_config none
14cortex_m reset_config sysresetreq
15
16$_TARGETNAME configure -event gdb-attach {
17	echo "Debugger attaching: halting execution"
18	reset halt
19	gdb_breakpoint_override hard
20}
21
22$_TARGETNAME configure -event gdb-detach {
23	echo "Debugger detaching: resuming execution"
24	resume
25}
26