2020-11-05 02:58 AM
I am using the STM32H745 dual core MCU, and the CM7 can be run correctly, but the CM4 go to the Hard fault immediately, I set a breakpoint at the start of main() but can't capture it. Then I set a breakpoint at Reset_Handler in the startup file (startup_stm32h745iitx.s), it can't be captured either.
Why it could hanppened and what should I do to fix it?
Solved! Go to Solution.
2020-11-05 05:53 AM
Examine the SCB registers to determine the source of the hard fault and go from there.
2020-11-05 05:53 AM
Examine the SCB registers to determine the source of the hard fault and go from there.
2020-11-06 02:38 AM
Many Eclipse-based IDEs have a "Run To Main" debug option, that is by default enabled. At least disable that.
Most toolchains/debugger support a breakpoint direct at the reset vector.
If that does not work, there is probably something wrong with your project. Perhaps a wrong startup code version (for another MCU variant).
Like, if the initial stackpointer points to an invalid address.
2020-11-08 05:59 PM
Thanks so much, that is a good way!
2020-11-08 06:03 PM
Thanks, I found some wrong in my project and I am still think that some BUGs are in STM32CubeIDE.