I have a custom 3D printer with RAMPS 1.4 and Arduino Mega 2560 (clone). I installed Marlin 2.0.7.2 firmware and I tested all the motion and heating parts individually and all of them work fine. Also, I activated SDSUPPORT and the printer can read my .gcode files from the SD card. When I try to print a 20 mm calibration cube by using an SD card, starting G-code works fine (printer goes home point) at the time of reading G-code from SD card, LCD goes weird and after 2 seconds printer reboots itself.
For now I can't print via USB because of distance and cable issues, can you give any suggestion to handle this?