Skip to main content
OTudo.1
Associate
Nov 14, 2021 4:42 PM UTC
Solved

LSE enable for STM32WLE5CCU6

Hi,

I am trying to activate LSE in a project with STM32WLE5CCU6, the pins PC14 and PC15 are activated, but in the window with clock tree, the RTC clock mux does not alow me to select LSE (it is locked on LSI). This happens even if all other pins are unused. I am using CubeMX version 6.3.0.

Does anybody encounter this problem? I am doing something wrong? Can anyone check?

Thank you

This topic has been closed for replies.
Mike_ST
Mike_STBest answer
ST Technical Moderator
Nov 15, 2021 11:20 AM UTC

Hello,

Please activate the RTC in the Timers section, and select, "activate clock source".

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 

4 replies

TDK
Nov 14, 2021 11:43 PM UTC

You need to enable the LSE in System Core -> RCC first, then you can select it as a clock source.

"If you feel a post has answered your question, please click ""Accept as Solution""."
OTudo.1
OTudo.1Author
Associate
Nov 15, 2021 7:09 AM UTC

Thank you for answering,

That is exactly how I set it up, I selected Crystal for LSE clock, but in Clock configuration page RTC Clock Mux is still locked.

I had attached the ioc file.

Mike_ST
Mike_STBest answer
ST Technical Moderator
Nov 15, 2021 11:20 AM UTC

Hello,

Please activate the RTC in the Timers section, and select, "activate clock source".

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
OTudo.1
OTudo.1Author
Associate
Nov 15, 2021 4:40 PM UTC

Thank you,

Now I understand how to activate it.