AnsweredAssumed Answered

Device not working as expected after waking up from deep sleep mode

Question asked by Kooljit Das on Apr 4, 2018
Latest reply on Apr 5, 2018 by Victor Jimenez

After entering deep sleep mode, I am trying to wake up the device using GPIO interrupt. i am able to configure the GPIO interrupt for the rising edge and the control is going to the IRQ handler on every rising edge, but there is some clocking issue that has occurred. The output on the debug UART is coming as some garbage value which looks like a baud rate issue. I tried to manually configure the clock and reinitialize the hardware including debug UART(UART 3), but its still not helped. 

 

Following is the IRQ handler that i have written, please suggest if any changes are required.

 

void EINT3_IRQHandler(void)

{
delay();
NVIC_ClearPendingIRQ(EINT3_IRQn);
Chip_GPIOINT_ClearIntStatus(LPC_GPIOINT, 0, 6);
prvSetupHardware();
xTaskResumeAll();
DEBUGOUT("Rising Status: %d\n", Chip_GPIOINT_GetStatusRising(LPC_GPIOINT,0));
DEBUGOUT("Falling Status: %d\n", Chip_GPIOINT_GetStatusFalling(LPC_GPIOINT,0));
delay();
NVIC_EnableIRQ(EINT3_IRQn);
DEBUGOUT("IRQ Enabled\n");
delay();
}

Outcomes