STM32WB not responding to wakeup pin
Hi,
Made a prototype board with a STM32WB55RGV. For testing the wake up I reduced to only UART1, incoming SYS WAKEUP PIN 4 (PA2), control LED on PB10, Serial Wire debugging. HSE/LSE present, but not used. BLE is not used, the firmware deleted, etc.
If I test by HAL_GPIO_ReadPin I can clearly detect Vcc on the Wake up pin (configured then as input) while pressing the button connected to this pin. Loosening falls down to 0/GND. A multimeter confirms 3.1V while pressing, 0V while loosening the button / in rest.
Just a simple code:
if (__HAL_PWR_GET_FLAG(PWR_FLAG_SB) != RESET)
{
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB);
}
HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN4);
HAL_Delay(1000);
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN4_HIGH);
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU);
HAL_PWR_EnterSTANDBYMode();
The device reaches standby mode, I notice the debugger lost contact after some seconds, pretty normal I guess. While pressing the button, confirming high level on PA2/SysWakeUp4 nothing happens. If I remove power and reapply, the program is just running until the enter standby function call. An LED confirms the start of the program.
I'm lost. Also changing PWR_WAKEUP_PIN4_HIGH to _LOW or the regular doesn't change the outcome. What am I missing here?

