AnsweredAssumed Answered

LPC54606 Deep Sleep, Utick0 interrupt

Question asked by Santosh balakrishnan on Dec 20, 2018

Hello, 

I am trying to wakeup a LPC54606 from deep sleep using utick0 timer. Here are the snippets of my initialization.

 

#define EXCLUDE_FROM_DEEPSLEEP (SYSCON_PDRUNCFG_PDEN_SRAMX_MASK|\
SYSCON_PDRUNCFG_PDEN_SRAM0_MASK|SYSCON_PDRUNCFG_PDEN_SRAM1_2_3_MASK| \
SYSCON_PDRUNCFG_PDEN_WDT_OSC_MASK)

 

// I am calling POWER_EnterDeepSleep with the above exclude mask. 

POWER_EnterDeepSleep(EXCLUDE_FROM_DEEPSLEEP);

 

Here is the micro-tick related initialization:

// Setup wake pin.
SYSCON->STARTERSET[0] |= SYSCON_STARTER_UTICK_MASK; /* GPIO pin interrupt 0 wake-up. */
EnableDeepSleepIRQ(UTICK0_IRQn);

 

utick0 is initialized using the fsl interface functions. 

I am toggling an LED in the IRQ handler - i can see the current consumption dropping - but i was expecting the LED to still toggle after the controller has gone into low power. And of course, i never come out of the low power mode at all.

 

Would appreciate any pointers on where the configuration is going wrong.

 

Thanks

Outcomes