2019-06-15 06:24 AM
Hello,
I'm using CubeMX 5.2 to initialize the RTC of my STM3210C card.
I activated HSE as a source for the RTC:
and on cubeMX I have enabled the Auto predivider calculation:
The generated code is:
The value of AsynchPrescaler is at 0xffffffff...
then, on cubeMX I disabled the Auto predivider calculation:
The generated code is:
Now, in both cases the Synchronous predivider value is not set and it is not possible to have the 1Hz correct frequency at the RTC counter.
Is there anyone who can tell me what I forgot?