cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F745vg Hardfault handler.

steja
Associate II

sir,

Am uisng STM32F745vg controller for stepper motor controlling through a driver.

while running program am getting hard fault handler .

can you provide why hardfault interrupt occure.

what is the solution for hard fault handler.

2 REPLIES 2
TDK
Guru

The solution is to figure out what's causing it to crash and then fix that.

Here is one of many hits for how to debug this issue:

https://interrupt.memfault.com/blog/cortex-m-fault-debug

If you feel a post has answered your question, please click "Accept as Solution".

Going to have to do some debugging...

Look at the code that is faulting, the registers.

Check the code, associated pointers, and stack state.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..