LPC55S69 : execute POWER_EnterPowerDown()

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC55S69 : execute POWER_EnterPowerDown()

1,110 次查看
EugeneHiihtaja
Senior Contributor I

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

标签 (1)
0 项奖励
回复
2 回复数

1,037 次查看
soledad
NXP Employee
NXP Employee

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

0 项奖励
回复

1,037 次查看
EugeneHiihtaja
Senior Contributor I

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

0 项奖励
回复