1# Explicitly for the STM32L475 Pandora board: 2# https://www.st.com/web/en/catalog/tools/PF261635 3# but perfectly functional for any other STM32L4 board connected via 4# an stlink-v2-1 interface. 5# This is for STM32L4 boards that are connected via stlink-v2-1. 6 7source [find interface/stlink.cfg] 8 9transport select hla_swd 10 11source [find target/stm32l4x.cfg] 12 13reset_config srst_only 14 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