1# Copyright (c) 2021, ATL-Electronics
2# SPDX-License-Identifier: Apache-2.0
3source [find interface/cmsis-dap.cfg]
4transport select swd
5
6# chip name
7set CHIPNAME gd32e103vb
8set ENDIAN little
9set CPUTAPID 0x2ba01477
10set FLASH_SIZE 0x20000
11
12source [find target/stm32f1x.cfg]
13
14reset_config trst_and_srst separate
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
27