cancel
Showing results for 
Search instead for 
Did you mean: 

about STM32 clock config

dqsh06
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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,

 

View solution in original post

7 REPLIES 7
SofLit
ST Employee

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.
KnarfB
Principal III

Did you enable RTC before setting RTC Mux?

hth

KnarfB 

hello,

I have solved it. 

thanks a lot.

dqsh06_0-1721642308610.png

 


@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

 

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,

 

Hello @dqsh06 ,

The remark pointed out by @Andrew Neil was to tell how you solved your issue not just to put a screenshot because it was not clear for everyone then "Accept as solution" that answer.

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.

@dqsh06 wrote:

I have attached the solve method on the reply.


But you didn't explain how that differed from what you had before, when it wasn't working; ie, what you actually had to change to go from "not working" to "working".

 


@dqsh06 wrote:

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


Right - so that was the key to get it working?

Please mark that as the solution:

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