2025-01-15 10:51 PM
EVM : NUCLEO-WB09KE
PRJECT: BLE_p2pServer_ota
I tried to enter Shutdown Mode via "sw3"。The code is as follows:
void APPE_Button3Action(void)
{
PWR_SHUTDOWNTypeDef sConfigSHUTDOWNT;
if (bleAppContext.Device_Connection_Status != APP_BLE_CONNECTED_SERVER)
{
APP_DBG_MSG("Shutdown\n");
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PB0,PWR_WUP_FALLEDG);
/* Clear all related wakeup flags*/
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WUF0);
sConfigSHUTDOWNT.BORStatus = ENABLE;
sConfigSHUTDOWNT.WakeUpPinStatus = ENABLE;
sConfigSHUTDOWNT.WakeUpPol = PWR_WUP_FALLEDG;
/* Enter the Standby mode */
HAL_PWR_ConfigSHUTDOWN(&sConfigSHUTDOWNT);
HAL_PWREx_EnterSHUTDOWNMode();
}
else
{
APP_BLE_Procedure_Gap_Peripheral(PROC_GAP_PERIPH_CONN_PARAM_UPDATE);
}
return;
}
#endif /* (CFG_BUTTON_SUPPORTED == 1) */
However, when I lowered PB0 from 3V to 0V, there was no wake-up behavior. And UART TX does not output any message.
Please tell me, how to solve this problem!
Thanks~