Skip to main content
stm322399
Senior
October 14, 2016
Question

CubeMX and RTC clock source

  • October 14, 2016
  • 4 replies
  • 1726 views
Posted on October 14, 2016 at 15:14

Hi,

is there anything wrong using HSE(8MHz) as RTC clock source for an L476 ?

CubeMx reports a configuration error when I tried (see screenshoot). Is this a tool bug or a device limit I failed to identify reading DS+RM ?

#hse #cubemx #stm32l4 #rtc
This topic has been closed for replies.

4 replies

Nesrine M_O
Associate
October 14, 2016
Posted on October 14, 2016 at 16:21

Hi gonzalez.laurent,

Thank you for your feedback. The issue has been reported internally.

-Syrine-

Sirma Siang
ST Employee
November 7, 2016
Posted on November 07, 2016 at 14:20

Hello Gonzalez Laurent,

I thank you for your bug report, this is very helpful to continuously improve our SW quality.

You are absolutely right, the clock range is between 0 and 1MHz.

This will be corrected in CubeMX version 4.18.

Kind Regards

Sirma

carmine
Associate III
November 7, 2016
Posted on November 07, 2016 at 14:58

I think that CubeMX should also be fixed to compute the values for the Async ans Sync prescalers automatically. It currently leaves them fixed to 127 and 255 respectively, regardless of the actual clock source. This is really confusing for novice users, IMHO.

Sirma Siang
ST Employee
November 8, 2016
Posted on November 08, 2016 at 11:16

Hello Cnoviello,

Yes you are right, and this is in the pipe to be corrected.

This point has been raised in another thread.

Kind Regards

Sirma