zephyr/boards/arm/gd32f450v_start/support/openocd.cfg

25 lines
539 B
INI

# Copyright (c) 2021, ATL-Electronics
# Copyright (c) 2022, Teslabs Engineering S.L.
# SPDX-License-Identifier: Apache-2.0
source [find interface/cmsis-dap.cfg]
transport select swd
set CHIPNAME gd32f450vk
set CPUTAPID 0x790007a3
source [find target/stm32f4x.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
}