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