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