Skip to main content
saiteja
Associate III
December 13, 2018
Question

Error Handler

  • December 13, 2018
  • 4 replies
  • 1057 views

If i remove while(1){} from Error handler and Hard fault handler is there any chance of it to effect micro controller

    This topic has been closed for replies.

    4 replies

    waclawek.jan
    Super User
    December 13, 2018

    If your program is perfect and never throws an error, then no.

    JW

    saiteja
    saitejaAuthor
    Associate III
    December 13, 2018

    actually i am getting an error that's why i am asking is there any effects if we remove that loop

    Tesla DeLorean
    Guru
    December 13, 2018

    Ploughing forward is only likely to compound the failure.

    Output diagnostic information and reset if you must continue. ​

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    AvaTar
    Senior III
    December 13, 2018

    If i remember correctly, the core goes into an error lockup if it hardfaults in a hardfault handler.

    And consequently needs a power cycle to continue.

    saiteja
    saitejaAuthor
    Associate III
    December 14, 2018

    there is a function for initialization of pwm in other function code is written that if that function !=HAL_OK then error handler in error handler while(1){}. Because of this the system is hanging while doing operations. so i am thinking to remove while(1) so that my problem gets solved