Skip to content

Commit 2f1c378

Browse files
erwangofabiobaltieri
authored andcommitted
boards: nucleo_f103rb: Fix openocd configuration
With latest version of openocd delivered in Zephyr SDK 0.15.0, a new configuration is required to flash and debug this board: "reset_config connect_assert_srst" allows to flash the board The new "init" function allows to run debug. Fixes #50590 for this specific board Note that other boards might be also impacted by this new version of openocd but a revert of zephyrproject-rtos/openocd@98d9f11 allows to get back to the previous status. A new Zephyr SDK release (V0.15.1) will be available with a revert of this commit. Unfortunately this has no impact on nucleo_f103rb. Hence this change. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 2aa0642 commit 2f1c378

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

boards/arm/nucleo_f103rb/support/openocd.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
source [find board/st_nucleo_f103rb.cfg]
22

3+
reset_config connect_assert_srst
4+
35
$_TARGETNAME configure -event gdb-attach {
46
echo "Debugger attaching: halting execution"
57
reset halt
@@ -10,3 +12,9 @@ $_TARGETNAME configure -event gdb-detach {
1012
echo "Debugger detaching: resuming execution"
1113
resume
1214
}
15+
16+
rename init old_init
17+
proc init {} {
18+
old_init
19+
reset halt
20+
}

0 commit comments

Comments
 (0)