Skip to content

Commit 668d611

Browse files
erwangogalak
authored andcommitted
boards: nucleo_f413zh: Enable flash and debug with openocd
nucleo_f413zh was missing some files to support flash with openocd. Fix this lack and update doc. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent f7419bc commit 668d611

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

boards/arm/nucleo_f413zh/board.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

boards/arm/nucleo_f413zh/doc/nucleof413zh.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ Programming and Debugging
148148
*************************
149149

150150
Nucleo F413ZH board includes an ST-LINK/V2-1 embedded debug tool interface.
151-
However this interface is currently not supported by OpenOCD. You will need
152-
to use ST tools or an external JTAG probe.
151+
This interface is supported by the openocd version included in Zephyr SDK.
153152

154153

155154
.. _Nucleo F413ZH website:
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
source [find board/st_nucleo_f4.cfg]
2+
3+
$_TARGETNAME configure -event gdb-attach {
4+
echo "Debugger attaching: halting execution"
5+
reset halt
6+
gdb_breakpoint_override hard
7+
}
8+
9+
$_TARGETNAME configure -event gdb-detach {
10+
echo "Debugger detaching: resuming execution"
11+
resume
12+
}

0 commit comments

Comments
 (0)