Hi !
I have taken in use power_manager_lpc example from SDK and it work fine and able to wakeup from PowerDown mode
due GINTx and RTC events.
I modify it a bit and both GINTx and RTC is able to wakeup and clock resturns back to 150Mhz.
POWER_EnterPowerDown((kPDRUNCFG_PD_LDOMEM | kPDRUNCFG_PD_FRO32K), 0x7FFF,
WAKEUP_GPIO_GLOBALINT0 | WAKEUP_GPIO_GLOBALINT1 | WAKEUP_RTC_LITE_ALARM_WAKEUP, 1);
BOARD_BootClockFRO12M();
BOARD_InitDebugConsole();
BOARD_BootClockPLL150M();
But If I take example with secure world usage e.g. hello_world_s/ns and do similar usage of everything in secure world
-> system is not wakeup due any events.
power_s version of power library is taken in use and GINTx processed on secure side and backup area is visible for save cpu retention data.
PowerLib version 0x10000
What kind of precondition or miss configuration of TZ gates should be added to that example ?
May be something is not enabled but no any crash and etc.
Do you have any example where EnterPower down is happens on secure side ?
Regards,
Eugene