kad / Marlin

Customized fork of Marlin Firmware, specifically for Anycubic Mega Zero printers. Check Wiki for more details and instructions.
https://github.com/kad/Marlin/wiki
73 stars 15 forks source link

EEPROM Datasize Error for BTT E3 Turbo #45

Open ckiefer opened 2 years ago

ckiefer commented 2 years ago

Hi

I am using the latest code from anycubic-kad-bugfix-2.0.x to compile the firmware for target anycubic_mega_zero2_btt_e3turbo_bl_e0fan.

Without doing any changes to the Marlin code, I am getting this error when powering up the printer:

Changing monitoring state from "Offline" to "Detecting serial connection"
Performing autodetection with 7 port/baudrate candidates: /dev/ttyACM0@115200, /dev/ttyACM0@250000, /dev/ttyACM0@230400, /dev/ttyACM0@57600, /dev/ttyACM0@38400, /dev/ttyACM0@19200, /dev/ttyACM0@9600
Trying port /dev/ttyACM0, baudrate 115200
Connecting to port /dev/ttyACM0, baudrate 115200
Handshake attempt #1 with timeout 2.0s
Connected to: Serial<id=0x60ab0630, open=True>(port='/dev/ttyACM0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=2.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Send: N0 M110 N0*125
Recv: Error:EEPROM datasize error.
Changing monitoring state from "Detecting serial connection" to "Error"
Send: M112
Send: N1 M112*32
Send: N2 M104 T0 S0*35
Send: N3 M140 S0*102
Changing monitoring state from "Error" to "Offline after error"
Connection closed, closing down monitor

These are the last lines from the build process:

Compiling .pio\build\anycubic_mega_zero2_btt_e3turbo_bl_e0fan\FrameworkArduino\main.cpp.o
Archiving .pio\build\anycubic_mega_zero2_btt_e3turbo_bl_e0fan\libFrameworkArduino.a
Linking .pio\build\anycubic_mega_zero2_btt_e3turbo_bl_e0fan\amz2_btt_e3turbo_bl_e0fan-bugfix-2.0.x-20220415-firmware.elf
Checking size .pio\build\anycubic_mega_zero2_btt_e3turbo_bl_e0fan\amz2_btt_e3turbo_bl_e0fan-bugfix-2.0.x-20220415-firmware.elf
Building .pio\build\anycubic_mega_zero2_btt_e3turbo_bl_e0fan\amz2_btt_e3turbo_bl_e0fan-bugfix-2.0.x-20220415-firmware.bin
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=====     ]  48.2% (used 15776 bytes from 32736 bytes)
Flash: [=====     ]  50.2% (used 238428 bytes from 475136 bytes)
============================================================================= [SUCCESS] Took 122.96 seconds =============================================================================
Environment                               Status    Duration
----------------------------------------  --------  ------------
anycubic_mega_zero2_btt_e3turbo_bl_e0fan  SUCCESS   00:02:02.964
============================================================================== 1 succeeded in 00:02:02.964 ==============================================================================

It's still working with the firmware I built a few months ago. I am sharing a zip file with the new, not-working firmware as well as the old, still working, firmware. mz_btt_e3_turbo_firmware_20220416.zip

Any help is highly appreciated. Christoph

kad commented 2 years ago

With drastic Marlin version changes (e.g. from 2.0.9.x to bugfix-2.0.x) it might be cases that layout of EEPROM is changed and might require re-initialisation from defaults+save those defaults to eeprom (M502+M500). If you have custom calibration values, don't forget to re-apply them and do M500 again. If that doesn't fix the issue, let's have a look more in details. it might be so that something was broken in bugfix-2.0.x branch for those borads. I still need to update branches to latest 2.0.9.4/2.1 releases + rebase development on bugfix-2.1.x branch. Hopefully during vacation in the end of July I'll have more time for that.