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 ?