2020-05-09 01:04 AM
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.
2020-05-09 02:17 PM
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
2020-05-09 07:41 PM
Going to have to do some debugging...
Look at the code that is faulting, the registers.
Check the code, associated pointers, and stack state.