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