cancel
Showing results for 
Search instead for 
Did you mean: 

What is hardfault?

yiulsup
Associate
Posted on August 04, 2014 at 09:14

My system was under hardfault in doing some job without saying anything.

What is hardfault? which one make hardfault in stm32f407ve.

Thanks ahead.

Kevin
1 REPLY 1
schauer
Associate II
Posted on August 04, 2014 at 09:36

Hello Kevin,

a hardfault means that the processor is in a condition where it could not continue. According to the ''Programming Manual'' (PM0214) it could either be cause:

  • the processor was not able to read the vector table
  • an other fault unhandled and escalated to a hardfault
  • unrelevant in that case: debug things

I'd expect that in your case you have an unhandled other fault that is escalated. If you run the program within the debugger, it normaly stops and with the call stack provided you could check where the fault occured.

bs