2026-05-21 1:36 PM - last edited on 2026-05-22 7:14 AM by Sara BEN HADJ YAHYA
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
2026-05-21 1:58 PM
debugging Cortex-M Hard Faults
Do you also need to configure Flash wait states at that speed?
2026-05-22 2:14 AM
For this configuration are 4 wait states required. And CubeMX2 generated code meets this condition.
2026-05-22 2:36 AM
OK - so back to debugging Cortex-M Hard Faults
2026-05-22 7:37 AM
Hello @rsta
Could you please share your ioc2 file?