Hi Irving Liu,
Thanks for your sharing.
Please giving a try to use the following code to enable RTC alarm interrupt as the wake-up source.
Chip_RTC_DeInit(LPC_RTC);
Chip_EVRT_ConfigIntSrcActiveType(EVRT_SRC_RTC, EVRT_SRC_ACTIVE_HIGH_LEVEL);
Chip_EVRT_SetUpIntSrc(EVRT_SRC_ATIMER, ENABLE);
Chip_RTC_Init(LPC_RTC);
Chip_RTC_ResetClockTickCounter(LPC_RTC);
Chip_RTC_SetTime(LPC_RTC, RTC_TIMETYPE_SECOND, 0);
Chip_RTC_SetAlarmTime(LPC_RTC, RTC_TIMETYPE_SECOND, RTC_ALARM_TIME);
Chip_RTC_CntIncrIntConfig(LPC_RTC, RTC_AMR_CIIR_IMSEC, DISABLE);
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------