Why does BLE become not discoverable when STM32WB goes into low power mode?
Hi,
I'm trying to set a custom board with STM32WB5MMG into low power mode STOP2. For that, program calls PWR_ExitStopMode() function when a timer reaches 10 seconds and exits when EXTI0 interrupts by calling PWR_ExitStopMode().
The MCU goes into and exits STOP2 mode correctly but I need the board to be connectable even when MCU is in low power mode, however BLE stops advertising when board is in STOP2 mode.
If the connection has been stablished before the board goes into stop mode, then BLE works fine until a disconnection occurs, when I have the same problem.
I tryed too using Sleep Mode and got the same results.
Code:
if(count_10s>=1000)
{
printf("GO INTO STOP2 MODEr\n");
count_10s=0;
PWR_EnterStopMode();
}
__weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
if(GPIO_Pin == BTN_Pin)
{
PWR_ExitStopMode();
//SystemClock_Config();
HAL_TIM_Base_Start_IT(&htim2);
printf("WAKE UP FROM EXTI\r\n");
}
}
What I'm missing?
Thanks in advance!
