cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX and RTC clock source

stm322399
Senior
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
4 REPLIES 4
Nesrine M_O
Lead II
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
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 II
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
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