Skip to main content
yiulsup
Visitor II
August 4, 2014
Question

What is hardfault?

  • August 4, 2014
  • 1 reply
  • 574 views
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
    This topic has been closed for replies.

    1 reply

    schauer
    Associate II
    August 4, 2014
    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