STM32LO51, I want to achieve lowest possible power in sleep while still being able to wake up using UART at 115200 baud rate
I want to be getting my characters , including the first one from uart at 115200 baud rate and use UART to wake up from sleep, how do I do this ? The sleep mode and low power sleep mode, with all gpios changed to analog no pull and all other peripherals disabled, still give a current draw of more than 2.2mA .
I put it to low power sleep using
HAL_SuspendTick(); // Suspend the system tick timer during low-power modes
HAL_PWR_EnterSLEEPMode(PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFI);
The stop mode does not wake up with uart, I have tried using
__HAL_RCC_HSISTOP_ENABLE() ;
HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFI);
__HAL_RCC_HSISTOP_DISABLE() ;
So mthat UART1 on HSI wiould still wake up, but it doesn't
What else can I do to achieve low power in low power sleep mode or get the stop mode working to get under 1.2mA in sleep ? I can turn off everything except for UART1, which I'm already doing right now
