Question
Determination of the reason for wake up following shut down on STM32L471RGT6
Hi,
I have the following code to enter shutdown with UART interrupts for the wake up. The processor does shutdown briefly (confirmed with power measurements) and then wakes up after ~.5 seconds. I cannot see any traffic on the serial ports and I can't determine the source of the interrupt that is causing wake up.
I would like to view the PWR (or other?) register to see what source is causing the wake up. Is this possible through the ST Cube debugger with breakpoints or some other means?
Thank you in advance
Richard
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU); //not sure this is the correct flag
HAL_SuspendTick();
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);