2022-11-25 06:13 AM
There is a problem with the start-up of both HF (25MHz) and RTC(32k) oscillators after a turn-OFF followed by immediate turn-ON (cca couple ms).
Oscillators:
The RTC crystal does not start-up at all and the HF one does show instability (duty cycle not 50%) resulting in cumulative error.
This bug gets worse with temperature(as expected).
I have found following in errata of this MCU:
The LSI clock might become unstable (duty cycle different from 50 %) and its maximum frequency can become significantly higher than 32 kHz, when:
The LSI oscillator clocks the RTC, or it clocks the clock security system (CSS) on LSE
The suggested workaround is following:
Apply one of the following measures:
These workarounds seem to have no effect.
The oscillators otherwise work perfectly. PCB layout is well done, loading by moderate capacity of 9pF.
Does anyone experience the same?
Solutions?
Thank you.
2022-11-25 09:03 AM
> Does anyone experience the same?
yes.
2022-11-29 07:30 AM
Hi @RKrec.2
This thread was marked as needing some direct technical assistance, and an internal support case has been created.
Please stand by and we will be in touch in just a moment.
Thank you for your interest in STMicro MCUs.
Regards,
Billy
2022-11-30 12:52 AM
I appreciate that. Thank you.
2022-11-30 12:55 AM
Hi @RKrec.2
Could you refer to AN2867 Rev16? Special focus on section 3.4, make sure that Gm_crit_max (MCU) > gm_crit (crystal). Also, section 3.3 to calculate the external capacitors then fine tune.
As mentioned in RM0399 Rev 3, section 9.7.25, before writing into RCC_BDCR.LSEDRV to change the drive level. The BDCR write protection should be disabled.