1source [find interface/stlink.cfg]
2
3transport select hla_swd
4
5set WORKAREASIZE 0x2000
6
7source [find target/stm32f4x.cfg]
8
9# There is only system reset line and JTAG/SWD command can be issued when SRST
10reset_config srst_only
11
12$_TARGETNAME configure -event gdb-attach {
13        echo "Debugger attaching: halting execution"
14        reset halt
15        gdb_breakpoint_override hard
16}
17
18$_TARGETNAME configure -event gdb-detach {
19        echo "Debugger detaching: resuming execution"
20        resume
21}
22