Skip to main content
Associate
May 21, 2026
Question

STM32C552 HSI 144MHz clock

  • May 21, 2026
  • 2 replies
  • 171 views

I created simple project using STMCubeMX2 for MCU STM32C552. I configured the clock by choosing HSIS on System MUX.  When I compile and run generated code it ends in HardFault_Handler.

When using PSIS option - the same result. HSISDiv3 clock works well. When I divide HSIS or PSIS clock by 2 on

AHB prescaler it also works.

 

Any idea?

Thank you

 

2 replies

Andrew Neil
Super User
May 21, 2026

debugging Cortex-M Hard Faults

 

Do you also need to configure Flash wait states at that speed?

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.
rstaAuthor
Associate
May 22, 2026

For this configuration are 4 wait states required. And CubeMX2 generated code meets this condition.

Andrew Neil
Super User
May 22, 2026
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.
Technical Moderator
May 22, 2026

Hello @rsta 

Could you please share your ioc2 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.Saket_Om"
rstaAuthor
Associate
May 22, 2026

Hello @Saket_Om 

here is the link:

https://a.starostik.cz/cloud/index.php/s/X3CmdemBixBXCSd

 

Thank you.