1source [find interface/stlink.cfg]
2
3transport select hla_swd
4
5source [find target/stm32l5x.cfg]
6
7# use hardware reset
8reset_config srst_only srst_nogate
9
10$_TARGETNAME configure -event gdb-attach {
11        echo "Debugger attaching: halting execution"
12        reset halt
13        gdb_breakpoint_override hard
14}
15
16$_TARGETNAME configure -event gdb-detach {
17        echo "Debugger detaching: resuming execution"
18        resume
19}
20