2024-06-25 01:34 AM
Hello,
I'm trying to determine the source of the wakeup flag, whether it's the power being turned on or the trigger of wakeup pin 2.
So this is my shutdown function:
2024-06-25 04:20 AM
2024-06-25 07:27 AM
Hello @Elhem_ZAY ,
in this example, they check the register for standby mode first, but it's not the same case for shutdown.
For me, the wakeup flag is always zero when I press the button (When the debug is disabled), whereas in debug mode, I receive pwr->SR1 = 258 when I press the button.