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