cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 - Use LSI2 as a RTC clock source for waking up from STOP2 mode

Gae
Visitor

Hi everybody,

I have an application, where my device should go every record_interval into the stop2 mode. Then Wakes up then measure some sensor values, then goes into the sleep. Same goes over and over.

The issue is, I am using the LSI2 as a clock source for my RTC. I am then using that RTC clock to wake my MCU up from the STOP2 mode. But the issue is: that RTC time (based on the LSI2) is drifting (roughly 10s less than the real time). I am then using the real sleep time to advance the ticks of my freeRTOS, because the ticks are being paused during the STOP2 mode.
Advancing the ticks manually then causes my freeRTOS task to run with some delays.

Now my questions are:

- Is there any way on my PCB, ith the STM32WB55RG on it to make the LSI2 or even the LSI1 more precise? PS: I am planning to buy an LSE oscillator. In the mean time, I try to compensate my application while using the LSI2

- Are there any other timers, options (apart from the LSE) to have a reliable time source for my RTC timer? Or maybe use other timers during the STOP2 mode?

 

I would be very happy to have any kind of help regarding this. Thank you very much.

 

Best regards

 

Gaëtan

0 REPLIES 0