LPC55S69 : execute POWER_EnterPowerDown()

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC55S69 : execute POWER_EnterPowerDown()

1,098件の閲覧回数
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,025件の閲覧回数
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,025件の閲覧回数
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 件の賞賛
返信