1source [find interface/stlink.cfg] 2 3# Work-area size (RAM size) = 20kB 4set WORKAREASIZE 0x5000 5 6source [find target/stm32f1x.cfg] 7 8$_TARGETNAME configure -event gdb-attach { 9 echo "Debugger attaching: halting execution" 10 reset halt 11 gdb_breakpoint_override hard 12} 13 14$_TARGETNAME configure -event gdb-detach { 15 echo "Debugger detaching: resuming execution" 16 resume 17} 18