Skip to main content
steja
Visitor II
May 9, 2020
Question

STM32F745vg Hardfault handler.

  • May 9, 2020
  • 2 replies
  • 832 views

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.

This topic has been closed for replies.

2 replies

TDK
May 9, 2020

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""."
Tesla DeLorean
Guru
May 10, 2020

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..