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