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?
2026-05-22 12:42 PM - last edited on 2026-06-03 7:27 AM by Andrew Neil
Hello @Saket_Om
here is the link:
https://a.starostik.cz/cloud/index.php/s/X3CmdemBixBXCSd
Thank you.
2026-05-22 12:43 PM - last edited on 2026-06-03 7:27 AM by Andrew Neil
Hello @Andrew Neil
thank you for your interest.
2026-06-03 6:45 AM
Hello @rsta
I couldn’t reproduce the issue on my side. I configured the clock settings exactly as in your example on the NUCLEO-C562RE board, and I did not encounter any HardFault.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.