23 lines
606 B
INI
23 lines
606 B
INI
# 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
|
|
}
|