Skip to main content
Zanon.Luciano
Associate III
June 15, 2019
Question

CubeMX RTC Init Error?

  • June 15, 2019
  • 0 replies
  • 719 views

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?

This topic has been closed for replies.