2021-12-13 11:04 AM
Hi,
I want to calibrate the RTC. So I need one timer to count the pulses from RTC.
The RTC clock source.(LSE external oscillator 32768 Hz) needs to be the clock source for one of the timers. In the reference design (RM0434) page 682 there are multiple clock source but I don't see the RTC_CLK.
Solved! Go to Solution.
2021-12-13 01:27 PM
Which STM32WB?
The clocks arrangement differs between STM32 models significantly.
If your mcu is governed by RM0434, LSE is connected through TIM2_OR1.ETR_RMP to TIM2's ETR, which can be used e.g. as clock to TIM2 when set to External Clock mode 2, ie. TIM2_SMCR.ECE is set.
JW
2021-12-13 12:23 PM
Non-LP timers can't be clocked from LSE. Looks like LPTIM1 can be clocked off of LSE.
Not sure I understand your method, though. You can't calibrate anything if both RTC and (LP)TIM are clocked from LSE.
2021-12-13 01:17 PM
Hi TDK,
I m referring to this document it is for another board(document AN4759),
I skipped the LPTIM section in the reference design. I thought all timers can be.
As I understand you only the LPTIMx can be configured to use the LSE oscillator?
2021-12-13 01:27 PM
Which STM32WB?
The clocks arrangement differs between STM32 models significantly.
If your mcu is governed by RM0434, LSE is connected through TIM2_OR1.ETR_RMP to TIM2's ETR, which can be used e.g. as clock to TIM2 when set to External Clock mode 2, ie. TIM2_SMCR.ECE is set.
JW
2021-12-13 01:30 PM
It Is a custom board using STM32WB55CGU6
2021-12-13 03:06 PM
OK so that should be covered by RM0434 and thus work as I described above.
JW