1# SPDX-License-Identifier: Apache-2.0 2# 3# Copyright (c) 2021 Next Big Thing AG 4 5source [find interface/stlink.cfg] 6 7transport select hla_swd 8 9set WORKAREASIZE 0x2000 10 11source [find target/stm32l0_dual_bank.cfg] 12 13# There is only system reset line and JTAG/SWD command can be issued when SRST 14reset_config srst_only 15 16$_TARGETNAME configure -event gdb-attach { 17 echo "Debugger attaching: halting execution" 18 reset halt 19 gdb_breakpoint_override hard 20} 21 22$_TARGETNAME configure -event gdb-detach { 23 echo "Debugger detaching: resuming execution" 24 resume 25} 26