blob: 8a9690db8109d249505dd49da7cadc4620eaab25 [file] [log] [blame]
# Copyright (c) 2021, ATL-Electronics
# Copyright (c) 2021, BrainCo Inc.
# SPDX-License-Identifier: Apache-2.0
source [find interface/cmsis-dap.cfg]
transport select swd
set CHIPNAME gd32f350rb
set CPUTAPID 0x790007a3
source [find target/stm32f3x.cfg]
reset_config trst_and_srst separate
$_TARGETNAME configure -event gdb-attach {
echo "Debugger attaching: halting execution"
reset halt
gdb_breakpoint_override hard
}
$_TARGETNAME configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}