Skip to main content
This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
Dec 3, 2024 9:30 AM UTC

Welcome @Anton_Huang, to the community!

I haven't checked the other requirements yet, but you have at least one problem. You have set HSE to 25MHz - but on your photo there is still an 8MHz crystal soldered in at X2. How is that supposed to work?

Regards
/Peter

In order 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.

3 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
Dec 3, 2024 9:30 AM UTC

Welcome @Anton_Huang, to the community!

I haven't checked the other requirements yet, but you have at least one problem. You have set HSE to 25MHz - but on your photo there is still an 8MHz crystal soldered in at X2. How is that supposed to work?

Regards
/Peter

In order 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.
Anton_Huang
Associate II
Dec 3, 2024 10:54 AM UTC

Thank you! It started working normally after I set the HSE to 8 MHz.

ST Technical Moderator
Dec 3, 2024 3:55 PM UTC

Hi @Anton_Huang and welcome to ST community,

This is an old issue recently fixed in CubeMX in latest releases. We recommend you update your software tools to avoid such problems in the future. 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL