1source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]
2# source [find interface/stlink.cfg]
3
4set WORKAREASIZE 0x10000
5
6source [find target/stm32f4x.cfg]
7
8adapter speed 1000
9adapter srst delay 100
10jtag_ntrst_delay 100
11
12reset_config srst_only srst_nogate
13
14$_TARGETNAME configure -event gdb-attach {
15	echo "Debugger attaching: halting execution"
16	reset halt
17	gdb_breakpoint_override hard
18}
19
20$_TARGETNAME configure -event gdb-detach {
21	echo "Debugger detaching: resuming execution"
22	resume
23}
24
25