|
From: openocd-gerrit <ope...@us...> - 2026-10-11 09:58:37
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via 0e6ae2525d64a4b39d65f21a4ad6069daa8af3f1 (commit)
from 6bacfd24cd5ed364528ae7bdaddcc454851d2fbb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0e6ae2525d64a4b39d65f21a4ad6069daa8af3f1
Author: Antonio Borneo <bor...@gm...>
Date: Thu Sep 24 15:00:51 2026 +0200
target/st/stm32mpxxx: enable smp only when working on multi-core
Setting an HW breakpoint when one target is declared in the SMP
list but is not examined causes error on OpenOCD
Info : no hardware breakpoint available
Error: [..] can't add breakpoint: resource not available
because OpenOCD doesn't know how many HW breakpoint are allowed
on the not yet examined target.
Simply drop the SMP association when only one target is debugged.
Change-Id: Ib7a5e3e6bb4329107bbc00f8334fca988a420e6c
Signed-off-by: Antonio Borneo <bor...@gm...>
Reviewed-on: https://review.openocd.org/c/openocd/+/10066
Tested-by: jenkins
diff --git a/tcl/target/st/stm32mp15x.cfg b/tcl/target/st/stm32mp15x.cfg
index 05bb33311..43e13dafd 100644
--- a/tcl/target/st/stm32mp15x.cfg
+++ b/tcl/target/st/stm32mp15x.cfg
@@ -68,7 +68,10 @@ target create $_CHIPNAME.cm4 cortex_m -dap $_CHIPNAME.dap -ap-num 2 -defer-exami
targets $_CHIPNAME.cpu0
-target smp $_CHIPNAME.cpu0 $_CHIPNAME.cpu1
+if {$EN_CA7_0 && $EN_CA7_1} {
+ target smp $_CHIPNAME.cpu0 $_CHIPNAME.cpu1
+}
+
$_CHIPNAME.cpu0 configure -rtos hwthread
$_CHIPNAME.cpu1 configure -rtos hwthread
diff --git a/tcl/target/st/stm32mp23x.cfg b/tcl/target/st/stm32mp23x.cfg
index 2ab6458c8..422bd8321 100644
--- a/tcl/target/st/stm32mp23x.cfg
+++ b/tcl/target/st/stm32mp23x.cfg
@@ -85,7 +85,10 @@ tpiu create $_CHIPNAME.tpiu -dap $_CHIPNAME.dap -ap-num 0 -baseaddr 0x80050000
targets $_CHIPNAME.a35_0
-target smp $_CHIPNAME.a35_0 $_CHIPNAME.a35_1
+if {$EN_CA35_0 && $EN_CA35_1} {
+ target smp $_CHIPNAME.a35_0 $_CHIPNAME.a35_1
+}
+
$_CHIPNAME.a35_0 configure -rtos hwthread
$_CHIPNAME.a35_1 configure -rtos hwthread
diff --git a/tcl/target/st/stm32mp25x.cfg b/tcl/target/st/stm32mp25x.cfg
index 360a45af5..b2d5d3c80 100644
--- a/tcl/target/st/stm32mp25x.cfg
+++ b/tcl/target/st/stm32mp25x.cfg
@@ -97,7 +97,10 @@ tpiu create $_CHIPNAME.tpiu -dap $_CHIPNAME.dap -ap-num 0 -baseaddr 0x80050000
targets $_CHIPNAME.a35_0
-target smp $_CHIPNAME.a35_0 $_CHIPNAME.a35_1
+if {$EN_CA35_0 && $EN_CA35_1} {
+ target smp $_CHIPNAME.a35_0 $_CHIPNAME.a35_1
+}
+
$_CHIPNAME.a35_0 configure -rtos hwthread
$_CHIPNAME.a35_1 configure -rtos hwthread
-----------------------------------------------------------------------
Summary of changes:
tcl/target/st/stm32mp15x.cfg | 5 ++++-
tcl/target/st/stm32mp23x.cfg | 5 ++++-
tcl/target/st/stm32mp25x.cfg | 5 ++++-
3 files changed, 12 insertions(+), 3 deletions(-)
hooks/post-receive
--
Main OpenOCD repository
|