Poket-Jony / Marlin-A4MaxPro-2.0.x

🖨 Marlin 2.0.x optimized for the Anycubic 4Max Pro 3D printer
GNU General Public License v3.0
54 stars 18 forks source link

[BUG] Constant reboot #41

Open MatLeb opened 4 years ago

MatLeb commented 4 years ago

Hi, thanks a lot for this firmware customization !

Bug Description

My A4MaxPro keeps rebooting.

My Configurations

No modification in Configuration.h and Configuration_adv.h Configuration.zip

Steps to Reproduce

  1. Update de firmware
  2. Boot start
  3. Printer reboots immediately after a few lines (last line : Filament runout sensor: M412 S1)

Additional Information

_Recv: start Recv: echo:Marlin 2.0.0 Recv: Recv: echo: Last Updated: 2020-03-07 | Author: (Poket-Jony, Github) Recv: echo:Compiled: Apr 26 2020 Recv: echo: Free Memory: 2166 PlannerBufferBytes: 1568 Recv: TFT Serial Debug: statusChanged: Anycubic 4Max Pro Ready. Recv: echo:SD card ok Recv: echo:V76 stored settings retrieved (747 bytes; crc 59879) Recv: echo: G21 ; Units in mm (mm) Recv: Recv: echo:; Filament settings: Disabled Recv: echo: M200 D1.75 Recv: echo: M200 D0 Recv: echo:; Steps per unit: Recv: echo: M92 X100.00 Y80.00 Z800.00 E418.00 Recv: echo:; Maximum feedrates (units/s): Recv: echo: M203 X150.00 Y150.00 Z20.00 E80.00 Recv: echo:; Maximum Acceleration (units/s2): Recv: echo: M201 X700.00 Y700.00 Z70.00 E15000.00 Recv: echo:; Acceleration (units/s2): P R T Recv: echo: M204 P700.00 R700.00 T700.00 Recv: echo:; Advanced: B S T J Recv: echo: M205 B20000.00 S0.00 T0.00 J0.04 Recv: echo:; Home offset: Recv: echo: M206 X0.00 Y0.00 Z0.00 Recv: echo:; Mesh Bed Leveling: Recv: echo: M420 S0 Z0.00 Recv: echo:; PID settings: Recv: echo: M301 P18.53 I1.27 D67.55 Recv: echo: M304 P100.68 I17.07 D395.86 Recv: echo:; Linear Advance: Recv: echo: M900 K0.00 Recv: echo:; Filament load/unload lengths: Recv: echo: M603 L100.00 U100.00 Recv: echo:; Filament runout sensor: Recv: echo: M412 S1_

Erik262 commented 4 years ago

Did you send these commands (M502, M501, M500) between step 1 and 2?

MatLeb commented 4 years ago

I can't : the firmware reboot automatically after update (maybe I'm doing something wrong) and after this reboot it's not possible anymore to send commands.

Erik262 commented 4 years ago

I guess that something got wrong while flashing the firmware. Did you use the precompiled hex file or you compiled it for yourself? If nothing helped, try this: https://www.youtube.com/watch?v=HahGaOTUmUw

MatLeb commented 4 years ago

Ok thanks ! In fact I did both (precompiled hex + compiled from sources), exactly the same result. When I flash it back to the original firmware Anycubic 1.1.7 (Marlin 1.1.0-RC8), no problem. Will try to do it from cura (I used platformIO on Mac) and check the jumper setting on the board, to see if it changes something.

Erik262 commented 4 years ago

Okay, that's interesting. I'm also compiling it by myself on my Mac with platformio. Everything works. And you can't see any errors?

MatLeb commented 4 years ago

Yes, no error, only 2 small warnings during compile :

In file included from Marlin/src/gcode/temperature/../../inc/../core/boards.h:24:0, from Marlin/src/gcode/temperature/../../inc/MarlinConfigPre.h:35, from Marlin/src/gcode/temperature/../../inc/MarlinConfig.h:28, from Marlin/src/gcode/temperature/M888.cpp:23: Marlin/src/gcode/temperature/../../inc/../core/macros.h: In instantiation of 'constexpr decltype ((lhs + rhs)) _MAX(L, R) [with L = unsigned int; R = int; decltype ((lhs + rhs)) = unsigned int]': Marlin/src/gcode/temperature/M888.cpp:41:69: required from here Marlin/src/gcode/temperature/../../inc/../core/macros.h:300:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return lhs > rhs ? lhs : rhs;

And

In file included from .pio/libdeps/mega2560/LiquidCrystal_ID136/LiquidCrystal_SR1W.cpp:48:0: .pio/libdeps/mega2560/LiquidCrystal_ID136/LiquidCrystal_SR1W.h:168:1: warning: multi-line comment [-Wcomment] // | | 0.1uF | \

Poket-Jony commented 4 years ago

Have you ever tested an older version (Marlin 1.1.9)? https://github.com/Poket-Jony/Marlin-A4MaxPro-1.1.9

Qbalion commented 4 years ago

It seems that such behaviour occurs when you update while having SD card inserted. Try to put SD card out and then rebooting stops to happen.

coolflyreg commented 3 years ago

I have the same problem. It always reboot after uploaded firmware. I used history version (e593da1c23a4759f6591826f815a504f0272e21a), it works fine. But it can't works on last version.

I tested all pre-release binaries of marlin 2.0.x. Following are work fine. v2.1.0-dev (Marlin 2.0.x).hex v2.1.1-dev (Marlin 2.0.x).hex v2.1.2-rc (Marlin 2.0.x).hex

Others can't work since v2.1.3-rc (Marlin 2.0.x).hex.

coolflyreg commented 3 years ago

@MatLeb I found another solve solution: To enable LONG_FILENAME_HOST_SUPPORT, and disable SDCARD_SORT_ALPHA, SDCARD_RATHERRECENTFIRST. Might be the sort file function caused out of memory.

mr-anderson-se commented 2 years ago

I had updated firmware to the v2.1.9-rc (Marlin 2.0.x) and printer kept rebooted after it. After I had put out SD card it booted normally. I had to format SD to make it working with printer again.