Skip to main content
Senior
July 22, 2024
Solved

about STM32 clock config

  • July 22, 2024
  • 2 replies
  • 2054 views

hello,

I have a very simple question, I have asked a FAE,but not solved.

I am using STM32CubeMX to config a project. I used an external 32.768khz crystal. I want to set the RTC clock to the external crystal. 

below is my setting.

dqsh06_0-1721636102046.png

I think i have enabled HSE and LSE. 

dqsh06_1-1721636238355.png

the clock to RTC is fixed to LSI RC, but I want to use LSE, not LSI, how can I setting?

 

Thanks,

dqsh06

 

Best answer by dqsh06

I have attached the solve method on the reply.

as below

dqsh06_0-1721643763604.png

if you check the activate clock source, then you can choose to LSE. 

Best Regards,

 

2 replies

mƎALLEm
Technical Moderator
July 22, 2024

Hello,

Could you please share your ioc file?

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
dqsh06Author
Senior
July 22, 2024

hello,

I have solved it. 

thanks a lot.

dqsh06_0-1721642308610.png

 

Andrew Neil
Super User
July 22, 2024

@dqsh06 wrote:

I have solved it. 


For the benefit of future readers with the same problem who may find this, how did you solve it?

Please mark the solution:

https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
KnarfB
Super User
July 22, 2024

Did you enable RTC before setting RTC Mux?

hth

KnarfB