Hi !
Can POWER_EnterPowerDown API be called in nonprivileged mode ?
in UM mentioned :
"
• CPU0 interrupt enable registers (NVIC->ISER) are modified by
POWER_EnterDeepSleep, POWER_EnterPowerDown, and
POWER_EnterDeepPowerDown power APIs. They are restored in case of CPU
retention (deep-sleep and in power-down) or if the low power mode is not entered (for
example, a pending interrupt).
"
and NVIC->ISER require privileged access.
Or API able to escalate privilege if need ?
Regards,
Eugene
Hi,
non-privileged mode prevents code from being able to disable interrupts, change the settings of NVIC, change the mode back to privileged, and alter MPU settings as well as a few other things.
Regards
Soledad
Hi soledad !
It means POWER_EnterPowerDown API require privileged mode always. Is this so ?
What about global interrupts ? Can they be disabled ?
What is relation of POWER_EnterPowerDown and ROM area ?
ROM area should be set to have Secure access only. And may be Power API use it and it cause condition than Enter power down can be used on Secure side only.
Is this so ?
Regards,
Eugene