blob: a97ad6bbca4dec8a46a2ebd285979172bd21543d [file] [log] [blame]
# Copyright (c) 2021 ATL-Electronics
# SPDX-License-Identifier: Apache-2.0
source [find interface/cmsis-dap.cfg]
transport select swd
# chip name
set CHIPNAME gd32f403ze
set ENDIAN little
set CPUTAPID 0x790007a3
set FLASH_SIZE 0x80000
source [find target/stm32f1x.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
}