blob: f4b1bc9142c7bc2844e441c8ba3682f2b0c5957b [file] [log] [blame]
# This is an ST NUCLEO-G031K8 board with single STM32G031K8 chip.
# https://www.st.com/en/evaluation-tools/nucleo-g031k8.html
source [find interface/stlink-dap.cfg]
transport select dapdirect_swd
source [find target/stm32g0x.cfg]
# There is only system reset line and JTAG/SWD command can be issued when SRST
reset_config srst_only
$_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
}