AnsweredAssumed Answered

EXTI doesn't wake up STM32L from Stop Mode

Question asked by sighinolfi.andrea on Jul 2, 2013
Latest reply on Jul 29, 2013 by Amel N
Hi all,

I am trying low power modes on STM32L151C6, but when I give the following lines, no interrupts seems to be able to wake up the MCU from Stop Mode.
From manual: "Mode exit: (WFI) Any EXTI Line configured in Interrupt mode (the corresponding EXTI Interrupt vector must be enabled in the NVIC).
But when the MCU goes in Stop Mode, it seems that interrupts are permanently disabled.
Could anyone help me or tell me what i'm doing wrong?

This is the code I actually use to put the STM32L in Stop Mode:


/* Disable PVD */

/* Enable Ultra low power mode */

/* To stop the sys tick for avoid IT */
SysTick->CTRL = 0;

SysTick->CTRL  &= ~SysTick_CTRL_TICKINT_Msk;        // systick IRQ off

/* Request Wait For Interrupt */    

SysTick->CTRL  |= SysTick_CTRL_TICKINT_Msk;            // systick IRQ on           

Thanks to anyone who will help!