LPC55S69 : execute POWER_EnterPowerDown()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S69 : execute POWER_EnterPowerDown()

1,190 Views
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

Labels (1)
0 Kudos
Reply
2 Replies

1,117 Views
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 Kudos
Reply

1,117 Views
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 Kudos
Reply