I am using dspic 33ep512mu810 to control 2 ac servo drive. Every thing works good. Some times if i press reset button the controller stops the job but hangs i have to press the reset button 2 to 3 times to reset again, this happens arount 1 in 4 to 5 resets. Kindly give solution COMPLIER USED PIC CCS
The problem is clearly in line 234, near the function for grinding smoke.
If you want a sensible answer you will have to give us more information, we have absolutely no idea of your hardware design or the software so asking for where the problem lies is pointless.
That's probably the line where they check the reset input but didn't debounce the signal properly, so the program calls fCrashAndBurn() instead of fGrindingSmoke.