Question
EXTI doesn't wake up STM32L from Stop Mode
Posted on July 02, 2013 at 08:32
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: EXTI_ClearITPendingBit(EXTI_Line0); /* Disable PVD */ PWR_PVDCmd(DISABLE); /* Enable Ultra low power mode */ PWR_UltraLowPowerCmd(ENABLE); /* To stop the sys tick for avoid IT */ SysTick->CTRL = 0; SysTick->CTRL &= ~SysTick_CTRL_TICKINT_Msk; // systick IRQ off PWR_ClearFlag(PWR_FLAG_WU); /* Request Wait For Interrupt */ PWR_EnterSTOPMode(PWR_Regulator_LowPower,PWR_STOPEntry_WFI); SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk; // systick IRQ on Thanks to anyone who will help! Andrea. #stm32 #stm32l #stm32lc6 #low-pow