cancel
Showing results for 
Search instead for 
Did you mean: 

EXTI doesn't wake up STM32L from Stop Mode

asighinolfi9
Associate II
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
1 REPLY 1
Amel NASRI
ST Employee
Posted on July 29, 2013 at 16:34

Hello Andrea,

Did you checked the examples within the standard peripheral library (STM32L1xx_StdPeriph_Lib_V1.1.\Project\STM32L1xx_StdPeriph_Examples\PWR\STOP)? Do you have same issue?

Try to start from this example to build your own one.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.