1# Copyright (c) 2021, ATL-Electronics 2# Copyright (c) 2021, Teslabs Engineering S.L. 3# SPDX-License-Identifier: Apache-2.0 4 5source [find interface/cmsis-dap.cfg] 6transport select swd 7 8set CHIPNAME gd32f450ik 9set CPUTAPID 0x790007a3 10 11source [find target/stm32f4x.cfg] 12 13reset_config trst_and_srst separate 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