1# This is an ST NUCLEO-G031K8 board with single STM32G031K8 chip.
2# https://www.st.com/en/evaluation-tools/nucleo-g031k8.html
3
4source [find interface/stlink-dap.cfg]
5
6transport select dapdirect_swd
7
8source [find target/stm32g0x.cfg]
9
10# There is only system reset line and JTAG/SWD command can be issued when SRST
11reset_config srst_only
12
13$_TARGETNAME configure -event gdb-attach {
14        echo "Debugger attaching: halting execution"
15        reset halt
16        gdb_breakpoint_override hard
17}
18
19$_TARGETNAME configure -event gdb-detach {
20        echo "Debugger detaching: resuming execution"
21        resume
22}
23