cancel
Showing results for 
Search instead for 
Did you mean: 

RTC and Timer Issues with BLE Stack on STM32WB35CEU6A

KemalUzgoren
Associate III

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!

1 REPLY 1
STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.