Hi Igor,
Thank you very much for the reply.
I tried the new interface firmware, but it does not work. I am new to mbed, could you please help me check the following step, and see if I have made any stupid error in the test steps or test program?
1. Download the interface firmware file to mbed, and disconnect the USB,as well as the additional power connected to VIN. Then connect the USB again, and find the interface firmware file disappeared. Does this mean the interface firmware is successfully used?
2. Copy my program to mbed, and then disconnect the USB, and use the additional power. Press reset to run the program.
I am using offline compilation, and the NXP driver library. The program like this:
void RTC_IRQHandler(void)
{
if(RTC_GetIntPending(LPC_RTC, RTC_INT_ALARM))
{
LED_On(LED4);
RTC_ClearIntPending(LPC_RTC, RTC_INT_ALARM);
RTC_Cmd(LPC_RTC, DISABLE);
NVIC_DisableIRQ(RTC_IRQn);
}
}
int test_deepsleep(void)
{
LED_On(LED1);
RTC_Init(LPC_RTC);
RTC_ResetClockTickCounter(LPC_RTC);
RTC_SetTime (LPC_RTC, RTC_TIMETYPE_SECOND, 0);
RTC_SetAlarmTime (LPC_RTC, RTC_TIMETYPE_SECOND, 10);
RTC_CntIncrIntConfig (LPC_RTC, RTC_TIMETYPE_SECOND, DISABLE);
RTC_AlarmIntConfig (LPC_RTC, RTC_TIMETYPE_SECOND, ENABLE);
RTC_ClearIntPending(LPC_RTC, RTC_INT_ALARM);
RTC_Cmd(LPC_RTC, ENABLE);
NVIC_EnableIRQ(RTC_IRQn);
LED_On(LED2);
CLKPWR_DeepSleep();
LED_On(LED3);
while(1);
return 1;
}
When I run the program, only LED1 and LED2 are turned on, LED3 and LED4 are not.
Thanks very much!
Regards,
Jessamine
Hi Experts,
I can not wake up from deep sleep mode by RTC or WDT interrupt.
I searched the forum, and it seems that this is because the mbed is in debug mode by default, is this correct? And how can I make wakeup work?
Thanks!
Regards, Jessamine