2018-12-12 09:19 PM
If i remove while(1){} from Error handler and Hard fault handler is there any chance of it to effect micro controller
2018-12-12 09:41 PM
If your program is perfect and never throws an error, then no.
JW
2018-12-12 10:29 PM
actually i am getting an error that's why i am asking is there any effects if we remove that loop
2018-12-12 11:54 PM
Ploughing forward is only likely to compound the failure.
Output diagnostic information and reset if you must continue.
2018-12-13 05:03 AM
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.
2018-12-13 07:39 PM
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