RTC Reference Clock (50Hz) worsens the LSE accuracy
As indicated by an4759, I am trying to use the 50Hz mains reference to improve the RTC accuracy of an STM32F413ZH.
However, the results I get are much worse than without using the reference:
LSE only: 0.6s/day
LSE+50Hz: 7.5s/day
(test duration 4 days)
According to an4759, with the reference, you should get an accuracy of about 0.6s/month.
To perform the tests I have started a project activating the reference in CUBEMX, without any calibration.
I have obtained the 50Hz signal with an optocoupled circuit, and I have introduced this signal by GPIO PB15 of the NUCLEO-413ZH.
Theoretically, the reference is working, the question is that it advances the time much faster than without the reference. Here you can also see the measurement of the 1Hz calibration signal measured with a "Frequency Counter".

It can be seen how the reference mechanism is acting trying to adjust the 1Hz signal, but the average obtained and therefore the time delay, worsen.
What can I be doing wrong?
Thanks!
