1source [find interface/stlink-dap.cfg] 2 3set WORKAREASIZE 0x8000 4 5transport select "dapdirect_swd" 6 7set CHIPNAME STM32U575ZITxQ 8set BOARDNAME NUCLEO-U575ZI-Q 9 10# Enable debug when in low power modes 11set ENABLE_LOW_POWER 1 12 13# Stop Watchdog counters when halt 14set STOP_WATCHDOG 1 15 16# STlink Debug clock frequency 17set CLOCK_FREQ 8000 18 19# Reset configuration 20# use hardware reset, connect under reset 21# connect_assert_srst needed if low power mode application running (WFI...) 22reset_config srst_only srst_nogate connect_assert_srst 23set CONNECT_UNDER_RESET 1 24set CORE_RESET 0 25 26# ACCESS PORT NUMBER 27set AP_NUM 0 28# GDB PORT 29set GDB_PORT 3333 30 31# BCTM CPU variables 32 33source [find target/stm32u5x.cfg] 34 35$_TARGETNAME configure -event gdb-attach { 36 echo "Debugger attaching: halting execution" 37 reset halt 38 gdb_breakpoint_override hard 39} 40 41$_TARGETNAME configure -event gdb-detach { 42 echo "Debugger detaching: resuming execution" 43 resume 44} 45