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