cancel
Showing results for 
Search instead for 
Did you mean: 

"We should never end up in this case..." Yet we do. Why?

HCohe.1
Associate III

Any program that I generate using STM32CubeIDE for the STM32WB with BLE enabled hangs until I comment out the following line. What need to change in the initialization sequence?

  /**

   * We should never end up in this case

   * However, if due to any bug in the timer server this is the case, the mistake may not impact the user.

   * We could just clean the interrupt flag and get out from this unexpected interrupt

   */

  while(__HAL_RTC_WAKEUPTIMER_GET_FLAG(phrtc, RTC_FLAG_WUTWF) == RESET);

2 REPLIES 2
AAnis.1
Associate II

same issue here under zigbee stack , i think it's related to clock configuration but idk what

Remy ISSALYS
ST Employee