boards: stm32h747i_disco: enable openocd debugging

Add necessary entries to debug CM7 core using OpenOCD.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2020-11-02 12:56:16 +01:00 committed by Maureen Helm
commit eab34cc17c

View file

@ -6,3 +6,14 @@ transport select hla_swd
source [find target/stm32h7x.cfg]
reset_config srst_only srst_nogate connect_assert_srst
$_CHIPNAME.cpu0 configure -event gdb-attach {
echo "Debugger attaching: halting execution"
reset halt
gdb_breakpoint_override hard
}
$_CHIPNAME.cpu0 configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}