<p>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.</p>
<p>For now I can't print via USB because of distance and cable issues, can you give any suggestion to handle this?</p>

CC BY-SA 4.0
2021-02-12T05:13:00.293Z
@agarza - Thank you for all of the recent top quality edits. Keep up the good work. Thanks again. :-)
Greenonline
CC BY-SA 4.0
2021-02-12T07:29:18.697Z
Hi M.SEL! Does it reboot always at the same point - or rather randomly? I wonder if it still could be bug or misconfiguration in firmware or on hardware level (activating board reset, etc.) or some more complicated problem, like floating voltage or some short/dry joint activated by vibration... Doe the same print work OK when executed from serial terminal, or you could never try even once?
octopus8
CC BY-SA 4.0
2021-02-12T08:27:22.900Z
@octopus8 hi . it seems it reboots always at  the same point , as if it cant read G-codes from SD card properly.i tried another SD card but same problem occured . i couldnt try serial terminal yet
M.SEL
CC BY-SA 4.0
2021-02-12T08:46:26.270Z
Try then to narrow down to **specific command or command sequence**. I.e. execute single lines, but better avoid Marlin's "stop" routine... so I propose following: from the original G-code file, generate more *.gcode files, containing: only 1st line, only first 2 lines, only first 3 lines, only first 4 lines, etc. Then check if they will be properly. Or if not at least one will execute properly, then maybe SD reader or connection is an issue (just compare to [https://reprap.org/wiki/Melzi](https://reprap.org/wiki/Melzi), the 3rd bullet from the bottom)...
octopus8
CC BY-SA 4.0
2021-04-09T22:11:42.147Z
I have the exact same issue, did you find a fix to it?
Esteban Yañez
CC BY-SA 4.0
2021-04-11T11:49:36.360Z
@EstebanYañez yes , i  removed bootscreens and other needless configs that consumes progmem , i think problem is related with memory , you can also try different arduino mega board or use original one
M.SEL
<marlin><arduino><ramps>
Marlin RAMPS 1.4 reboot problem while printing via SD card
M.SEL
# Marlin RAMPS 1.4 reboot problem while printing via SD card

(Asked by: username_0 on 2021-02-12)

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?

**Tags:** marlin, arduino, ramps
> **Comments:**
> **username_1**: @agarza - Thank you for all of the recent top quality edits. Keep up the good work. Thanks again. :-)  
> **username_2**: Hi M.SEL! Does it reboot always at the same point - or rather randomly? I wonder if it still could be bug or misconfiguration in firmware or on hardware level (activating board reset, etc.) or some more complicated problem, like floating voltage or some short/dry joint activated by vibration... Doe the same print work OK when executed from serial terminal, or you could never try even once?  
> **username_0**: @octopus8 hi . it seems it reboots always at  the same point , as if it cant read G-codes from SD card properly.i tried another SD card but same problem occured . i couldnt try serial terminal yet  
> **username_2**: Try then to narrow down to **specific command or command sequence**. I.e. execute single lines, but better avoid Marlin's "stop" routine... so I propose following: from the original G-code file, generate more *.gcode files, containing: only 1st line, only first 2 lines, only first 3 lines, only first 4 lines, etc. Then check if they will be properly. Or if not at least one will execute properly, then maybe SD reader or connection is an issue (just compare to [https://reprap.org/wiki/Melzi](https://reprap.org/wiki/Melzi), the 3rd bullet from the bottom)...  
> **username_3**: I have the exact same issue, did you find a fix to it?  
> **username_0**: @EstebanYañez yes , i  removed bootscreens and other needless configs that consumes progmem , i think problem is related with memory , you can also try different arduino mega board or use original one  

---

## 0 answers

