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