2017-03-15 02:47 PM
Hi,
I have a STM32L0538 discovery board. I put the STM32Cube example code into it for Stop mode (no RTC) and it does not go into stop mode. It exits stop mode immediately. The only change I added was to toggle the LED before trying to go into stop mode. When running it just toggles the LED continuously instead of staying in stop mode until the push button is pressed!
On a plus note, the Sleep Mode example works perfectly...
EDIT: It seems the Systick interrupt wakes it out of stop mode. If you add the following code to STM32Cude Stop Mode examples they work fine...
/* Enter Stop Mode */
HAL_SuspendTick(); HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); HAL_ResumeTick();2017-03-16 06:40 PM
It seems the comparator wakeup example exhibits the same problem. Does anyone know how to escalate this to their bugs department?