Question
STM32l4 LPTimer and Stop mode
Posted on September 19, 2016 at 17:13
Hi,
I am new to programming the stm32 chips and I want to use the LPTimer to wake up from Stop mode. I used CubeMX to initialize the timer with interrupt. I use the LSI with no prescaler (I can change this of course), so the clock period would be 31,25 us. Now I want to do something in the while loop of the main function and go into stop mode. After x*32,25 microseconds the chip should wake up with a lptimer interrupt. With the normal timers there was no problem doing this (tim6 and sleep mode) with the HAL_base_IT function. But there is no such HAL-function with the LPTimer.I would be happy, if you could help me here,Greetings