This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 191e250cc3c arch/tricore: Suspend stm when CPU stops
191e250cc3c is described below
commit 191e250cc3cae62538ac172e33db324bb2d08a55
Author: panzihao <[email protected]>
AuthorDate: Wed May 20 14:42:03 2026 +0800
arch/tricore: Suspend stm when CPU stops
Fix break point cause suspend stm still running cause timer paused.
Signed-off-by: panzihao <[email protected]>
---
arch/tricore/src/common/tricore_systimer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/tricore/src/common/tricore_systimer.c
b/arch/tricore/src/common/tricore_systimer.c
index b0f8df1ebb9..3e8a0470b35 100644
--- a/arch/tricore/src/common/tricore_systimer.c
+++ b/arch/tricore/src/common/tricore_systimer.c
@@ -309,6 +309,8 @@ tricore_systimer_initialize(volatile void *tbase, int irq,
uint64_t freq)
oneshot_count_init(&priv->lower, (uint32_t)freq);
+ IfxStm_setSuspendMode(priv->tbase, IfxStm_SuspendMode_hard);
+
IfxStm_setCompareControl(tbase,
IfxStm_Comparator_0,
IfxStm_ComparatorOffset_0,