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