AnsweredAssumed Answered

STM32L100 LP Mode issue

Question asked by Mat on Apr 23, 2014
Latest reply on Apr 23, 2014 by sung.chen_chung
Hi all,

I am trying to use low power modes on STM32L100 MCU.
I've implemented a simple firmware that after setting the MCU to run @32MHz (HSI+PLL using the Clock Configuration Utility excel) waits an EXTI (key pressure) to set the MCU in low power mode, then waits another EXTI key pressure to return to the RUN mode.

I've tryed to implement STOP mode and it works correctly.
I'm now trying to implement LP sleep but, after entering the LP mode (I'm checking the current consumption on PSU to be sure that the LP mode is activated), I am not able to detect the next EXTI pressure then the MCU does not exit from the LPsleep mode.

I'm following the code example of the demostration firmware of STM32L152D-EVAL board.

The configuration of the EXTI pin and line is the same for Stop and LPSleep mode, then I think it is correct... so I think that the issue should be related to the clock but I'm not able to find it... is there any particular configuration to set to use EXTI under LPsleep mode?

Attached are 3 files containing the related code that I'm using.
Thanks you all

Attachments

Outcomes