cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX RTC Init Error?

Zanon.Luciano
Senior

Hello,

I'm using CubeMX 5.2 to initialize the RTC of my STM3210C card.

I activated HSE as a source for the RTC:0690X000008ihJZQAY.jpg

and on cubeMX I have enabled the Auto predivider calculation:

0690X000008ihJtQAI.jpg

The generated code is:

0690X000008ihJyQAI.jpg

The value of AsynchPrescaler is at 0xffffffff...

then, on cubeMX I disabled the Auto predivider calculation:

0690X000008ihK8QAI.jpg

The generated code is:

0690X000008ihKDQAY.jpg

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?

0 REPLIES 0