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:
parent
c00839d243
commit
eab34cc17c
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue