Skip to main content
HCohe.1
Associate III
Jan 18, 2022 11:30 PM UTC
Question

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

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);

This topic has been closed for replies.

2 replies

AAnis.1
Associate
Feb 14, 2022 3:47 PM UTC

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

Remy ISSALYS
ST Technical Moderator
Feb 23, 2022 3:42 PM UTC