Files
zephyr/boards/st/stm32u5a9j_dk/support/openocd.cfg
Erwan Gouriou 15f16834e6 boards: Convert stm32u5a9j_dk to HWM v2
Port the board to HWMv2.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 15:50:00 +01:00

47 lines
945 B
INI

source [find interface/stlink-dap.cfg]
set WORKAREASIZE 0x8000
transport select "dapdirect_swd"
set CHIPNAME STM32U5A9NJHxQ
set BOARDNAME STM32U5A9J_DK
# Enable debug when in low power modes
set ENABLE_LOW_POWER 1
# Stop Watchdog counters when halt
set STOP_WATCHDOG 1
# STlink Debug clock frequency
set CLOCK_FREQ 8000
# Reset configuration
# use hardware reset, connect under reset
# connect_assert_srst needed if low power mode application running (WFI...)
reset_config srst_only srst_nogate connect_assert_srst
set CONNECT_UNDER_RESET 1
set CORE_RESET 0
# ACCESS PORT NUMBER
set AP_NUM 0
# GDB PORT
set GDB_PORT 3333
# BCTM CPU variables
source [find target/stm32u5x.cfg]
$_TARGETNAME configure -event gdb-attach {
echo "Debugger attaching: halting execution"
reset halt
gdb_breakpoint_override hard
}
$_TARGETNAME configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}
gdb_memory_map disable