Skip to content

[Backport v4.4-branch] ST: STM32WB09: Fix PM issues#107999

Open
github-actions[bot] wants to merge 7 commits intov4.4-branchfrom
backport-107047-to-v4.4-branch
Open

[Backport v4.4-branch] ST: STM32WB09: Fix PM issues#107999
github-actions[bot] wants to merge 7 commits intov4.4-branchfrom
backport-107047-to-v4.4-branch

Conversation

@github-actions
Copy link
Copy Markdown

Backport a3ce633~7..a3ce633 from #107047.

Original PR description:


Fix the issues related to preventing suspend-to-ram state:

  • Handle TRNG repetition and adaptive health test errors properly.
  • Calculate the future time passed to pm_policy_event_register correctly to avoid negative value when the system timer goes beyond 32-bit range.
  • Increase the minimum residency value to 1500us since the minimum threshold is 1070us and depends on max-hs-startup-time (default value: 780us). Therefore, a safe margin is 1500us to support other values for max-hs-startup-time.

Supplementary PR: #361

HoZHel added 7 commits April 27, 2026 09:23
Bypass acquiring RNG when it is already acquired.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
(cherry picked from commit ba7a20a)
Avoid entering low power mode while waiting for an event to be
generated by TRNG interrupt when CONFIG_PM_S2RAM is set.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
(cherry picked from commit 59ccf80)
…WB09

Handle repetition and adaptive health test errors for STM32WB09 properly.
Resetting Health error flags is not enough. See also RM0505 §14.7.11

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
(cherry picked from commit a2d7019)
Calculate the future time correctly to avoid negative value for "value_ms".

Register the pm_policy_event when HAL_RADIO_TIMER_SetRadioTimerValue
returns success.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
(cherry picked from commit 2e933d3)
Increase the minimum residency value to 1.5ms since the minimum threshold
is 1070us and depends on max-hs-startup-time (default value: 780us).
Therefore, a safe margin is 1500us to support other values for
max-hs-startup-time.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
(cherry picked from commit 418c5d6)
Check the stability of HSE before restarting the execution.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
(cherry picked from commit bc469ea)
Update west.yml to point to the recent changes for hal_stm32.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
(cherry picked from commit a3ce633)
@github-actions github-actions Bot added the Backport Backport PR and backport failure issues label Apr 27, 2026
@github-project-automation github-project-automation Bot moved this to To do in Backports Apr 27, 2026
@HoZHel HoZHel moved this from To do to Ready in Backports Apr 27, 2026
@MaureenHelm MaureenHelm reopened this Apr 27, 2026
@github-project-automation github-project-automation Bot moved this from Ready to Needs more info in Backports Apr 27, 2026
@github-actions
Copy link
Copy Markdown
Author

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_stm32 zephyrproject-rtos/hal_stm32@39130f2 zephyrproject-rtos/hal_stm32@4d5fc69 zephyrproject-rtos/hal_stm32@39130f29..4d5fc691

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@MaureenHelm MaureenHelm moved this from Done to Needs a bug report in Backports Apr 27, 2026
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs a bug report

Development

Successfully merging this pull request may close these issues.

4 participants