STM32F401RBTx goes hard fault when clock speed is high
I saw a strange behavior when using STM32F401RBTx, to show you I added only 1 output as LED and toggled it.


I have just that much code. I tried with 16 MHz, 48 MHz, 64 MHz, 84 MHz. It went hard fault when speed is 64 MHz or 84 MHz.

This is the clock setting which calculated by STM32CubeIDE.
It goes inside of HAL_RCC_ClockConfig function and can't go beyond HAL_InitTick function. When I put breakpoint inside HAL_InitTick I could delay hard fault little bit and saw below callstack.

I tried this with 2 microcontrollers and same thing was happening. How can I solve this? Thank you.


