Skip to main content
Associate III
November 4, 2024
Solved

RTC and Timer Issues with BLE Stack on STM32WB35CEU6A

  • November 4, 2024
  • 1 reply
  • 998 views

Hello,

When I add the BLE stack to the STM32WB35CEU6A, I notice that the RTC and timer settings don’t work correctly. With the BLE stack enabled, I can’t get accurate time information from the RTC and timer, or there are inconsistencies in the timing. Is there something I might be overlooking in the STM32CubeMX settings? What specific settings should I pay attention to for stable operation of both RTC and timer with BLE?

Thanks!

Best answer by STTwo-32

Hello @KemalUzgoren 

The Timer server is running on the RTC. So, the RTC peripheral should be configured according to the BLE application needs. 

For the timers, it may not work will entering the sequencer system of the BLE application since those timers can work only on Run Sleep Low Power Run and Low Power Sleep but in a few cases, the System enter in stop 2 mode for IDLE tasks. So, the Timers may stop working.

If you are looking for accurate time calculation, you can maybe use the Timer Server.

For more details, you may take a look at the AN5289 and the RM0434.

Best Regards.

STTwo-32

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
November 4, 2024

Hello @KemalUzgoren 

The Timer server is running on the RTC. So, the RTC peripheral should be configured according to the BLE application needs. 

For the timers, it may not work will entering the sequencer system of the BLE application since those timers can work only on Run Sleep Low Power Run and Low Power Sleep but in a few cases, the System enter in stop 2 mode for IDLE tasks. So, the Timers may stop working.

If you are looking for accurate time calculation, you can maybe use the Timer Server.

For more details, you may take a look at the AN5289 and the RM0434.

Best Regards.

STTwo-32

Associate III
November 5, 2024

Hello @STTwo-32,

Thank you for the clarification and guidance! I’ll review the AN5289 and RM0434 documents and adjust the RTC settings accordingly. Your insights on timer operation and the Timer Server are especially helpful.

Best regards,

Kemal Uzgoren