1source [find interface/stlink.cfg]
2
3transport select hla_swd
4
5source [find target/stm32f1x.cfg]
6
7reset_config srst_only
8
9$_TARGETNAME configure -event gdb-attach {
10        echo "Debugger attaching: halting execution"
11        reset halt
12        gdb_breakpoint_override hard
13}
14
15$_TARGETNAME configure -event gdb-detach {
16        echo "Debugger detaching: resuming execution"
17        resume
18}
19