Skip to main content
Sprak.11
Associate II
October 21, 2020
Solved

Unable to select the external crystal for RTC in CUBEMX

  • October 21, 2020
  • 6 replies
  • 2027 views

I try to enable the External crystal for RTC in STMCUBEMX but I am unable to select the external crystal in STMCUBEMX .

Kindly anyone help me to solve to solve this issues.

This topic has been closed for replies.
Best answer by Piranha

To select the RTC clock source, one has to... (guess it) enable the RTC!

6 replies

Khouloud ZEMMELI
ST Employee
October 21, 2020

Hi @Sprak.1​ ,

You can choose Under RCC Mode /config in CubeMX the nature/mode (Crystal or Bypass for HSE-LSE..) that you want to use.

Best Regards,

Khouloud

Sprak.11
Sprak.11Author
Associate II
October 21, 2020

0693W000004KWB7QAO.jpgI am already select that as crystal, if I am not selecting that the value of the external crystal will not highlighted it will be in faded.

in that image also you look the main external crystal we can able to switch the internal or external mode the options are enabled but in RTC the options are not enabled.

Oliver Sedlacek
Senior
October 21, 2020

Have you enabled the LSE? You can find it in the System Core --> RCC configuration section.

Sprak.11
Sprak.11Author
Associate II
October 21, 2020

yes I am enabled

if I am not enable means its shows like this image0693W000004KWr3QAG.png

Piranha
PiranhaBest answer
Principal III
October 21, 2020

To select the RTC clock source, one has to... (guess it) enable the RTC!

Sprak.11
Sprak.11Author
Associate II
October 21, 2020

yeah I tried this it works