Question
STM32WB LPSLEEP issue
Hello, I'm trying to implement Low power sleep on STM32WB. The sequence is as per LPSLEEP example:
HAL_PWREx_EnableFlashPowerDown(PWR_FLASHPD_LPSLEEP);
SystemClock_Decrease(); //MSI 2MHZ
HAL_SuspendTick();
HAL_PWR_EnterSLEEPMode(PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFI);
//... Sleep until wake on interrupt (EXTI15_10_IRQn)In my case CPU1 never sleeps, or it wakes straight away. I've tried disabling the other interrupts with HAL_NVIC_DisableIRQ(), __disable_irq(), no success.
What could be causing it? CPU2 and BLE stack are running, what needs to be done on this side? Thanks
