cancel
Showing results for 
Search instead for 
Did you mean: 

Error Handler

saiteja
Associate II

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

5 REPLIES 5

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

JW

saiteja
Associate II

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

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

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
Associate II

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