Skip to content

Commit 76b2e82

Browse files
silabs-BastienBjhedberg
authored andcommitted
simplicity_sdk: Patch in sl_power_manager_hal_s2.c
Patch needed to fix a bug where the SLEEPDEEP bit is not cleared properly after a wakeup from EM2. Upstream-Status: Pending Signed-off-by: Bastien Beauchamp <[email protected]>
1 parent bcb9968 commit 76b2e82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

simplicity_sdk/platform/service/power_manager/src/sleep_loop/sl_power_manager_hal_s2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ void sli_power_manager_apply_em(sl_power_manager_em_t em)
615615
case SL_POWER_MANAGER_EM2:
616616
case SL_POWER_MANAGER_EM3:
617617
EMU_EnterEM2(false);
618+
// Clear the SLEEPDEEP bit after sleep.
619+
SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk;
618620
break;
619621

620622
default:

0 commit comments

Comments
 (0)