F407 wake-up error
I have a question regarding an F407 wake-up error.
I am using an F407ZGT and have connected the power switch to PA0 using a pull-down resistor.
HAL_SuspendTick();
HAL_PWR_EnableWakeUpPin( PWR_WAKEUP_PIN1 );
__HAL_PWR_CLEAR_FLAG( PWR_FLAG_WU | PWR_FLAG_SB );
HAL_PWR_EnterSTANDBYMode();
I have been using this code successfully.
However, after modifying the firmware and downloading it, or when downloading via the gang tool, the MCU fails to wake up via the wake-up input—though not always. Once this issue occurs on a board, the wake-up function permanently stops working, regardless of any operations performed.
Is there any way to restore the wake-up function?
Please help me!
