Hi soledad !
I' using POWER_EnterPowerDown() in secure side via NSC call from Nonsecure side.
and secure and nonsecure interrupts are used as wakeup sources.
_disable_irq() is called on nonsecure side
and secureportDISABLE_SECURE_INTERRUPTS(); can be called on Secure side.
But looks like it is dosn't matter -> wakeup happens in any case.
in UM mantioned that API manipulate with NVIC->ISER and may be they need privileged access as well.
Also POWER_API code located in ROM what also need to have Secure attributes.
So there are a lot of limitations if API should be used in real system.
May be if I use secure and nonsecure interrupts for wakeup I should allocate call on Secure side.
But it would be nice to understand all limitation/preconditions for this API from UM.
Regards !
Eugene