You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though the state 2 is defined as a PM_STATE_SUSPEND_TO_IDLE, i got Unsupported power state 2 log print. So I noticed that it seems missing break; keyword.
/* Handle SOC specific activity after Low Power Mode Exit */
void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
{
switch (state) {
case PM_STATE_SUSPEND_TO_IDLE:
if (substate_id <= 3) {
LL_LPM_DisableSleepOnExit();
LL_LPM_EnableSleep();
#ifdef CONFIG_STM32_STOP3_LP_MODE
} else if (substate_id == 4) {
stm32_clock_control_standby_exit();
LL_ICACHE_SetMode(LL_ICACHE_1WAY);
LL_ICACHE_Enable();
while (LL_ICACHE_IsEnabled() == 0U) {
}
LL_LPM_DisableSleepOnExit();
LL_LPM_EnableSleep();
#endif
} else {
LOG_DBG("Unsupported power substate-id %u",
substate_id);
}
break;
case PM_STATE_STANDBY:
/* To be tested */
LL_LPM_EnableSleep();
case PM_STATE_SUSPEND_TO_RAM:
__fallthrough;
case PM_STATE_SUSPEND_TO_DISK:
__fallthrough;
default:
LOG_DBG("%d Unsupported power state %u", __LINE__,state);
break;
}
/* need to restore the clock */
stm32_clock_control_init(NULL);
/*
* System is now in active mode.
* Reenable interrupts which were disabled
* when OS started idling code.
*/
irq_unlock(0);
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Even though the state 2 is defined as a PM_STATE_SUSPEND_TO_IDLE, i got Unsupported power state 2 log print. So I noticed that it seems missing
break;
keyword.https://github.com/zephyrproject-rtos/zephyr/blob/main/soc/st/stm32/stm32u5x/power.c#L149
Beta Was this translation helpful? Give feedback.
All reactions