Hi all, I have built a 3d printer using mega 2560 with ramps 1.4 shield the printer works fine with individual commands direct from the computer but when using a gcode file it starts by homing, does that fine, goes on to auto bed levelling that also works fine, goes on to heating the extruder all perfectly then when it moves to the print start position it freezes and the processor resets losing all code and displays "Printer Ready". I have added a 5 volt 2 amp reducer to my 20 amp 12 volt power supply for the 5 volt rail and so I am sure that it is not a power supply problem. please can someone help
So when it starts to run the actual Gcode file it resets? Which firmware are you using?
It does sound like your power supply can not cope with the heater on and motors moving. So I would guess it is the power supply.