Arduino mega serial communication and reset issue

Hi everybody,

I am using Arduino Mega 2560 for my Project. I am using GRBL GitHub - fra589/grbl-Mega-5X: 5/6 Axis version of Grbl, the open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560 firmware. It works nicely. Serial communication is happening between PC and Arduino Mega. I am facing following issue currently.

  • Arduino stops responding to PC in the middle of the running program, if I reset it manually it start to work again properly.

I am not able to recreate this problem, it occurs randomly. Please suggest what can go wrong here, how to solve this issue.

Is there a Grbl alarm that stops the program? If so which alarm?