cancel
Showing results for 
Search instead for 
Did you mean: 

STM32C552 HSI 144MHz clock

rsta
Visitor

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

 

4 REPLIES 4
Andrew Neil
Super User

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.

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

OK - so back to debugging Cortex-M Hard Faults

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.
Saket_Om
ST Employee

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