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 at91samr21g18a
8set ENDIAN little
9set CPUTAPID 0x0bc11477
10
11source [find target/at91samdXX.cfg]
12
13reset_config trst_and_srst separate
14
15$_TARGETNAME configure -event gdb-attach {
16	echo "Debugger attaching: halting execution"
17	reset halt
18	gdb_breakpoint_override hard
19}
20
21$_TARGETNAME configure -event gdb-detach {
22	echo "Debugger detaching: resuming execution"
23	resume
24}
25