Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] M502 fails to restore configuration or Marlin fails to read the value correctly. #25088

Closed
1 task done
ilendemli opened this issue Dec 12, 2022 · 7 comments
Closed
1 task done

Comments

@ilendemli
Copy link

ilendemli commented Dec 12, 2022

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Trying to reset the values to the ones i defined in configuration.h. M502 and M500 are executed and returns ok. But M503 returns all zeros. Advanced Settings on Display shows garbage.

M503
13:18:47.301 > echo:; Linear Units:
13:18:47.302 > echo:  G21 ; (mm)
13:18:47.302 > echo:; Temperature Units:
13:18:47.302 > echo:  M149 C ; Units in Celsius
13:18:47.302 > echo:; Filament settings (Disabled):
13:18:47.302 > echo:  M200 S0 D1.75
13:18:47.302 > echo:; Steps per unit:
13:18:47.302 > echo:  M92 X0.00 Y0.00 Z0.00 E0.00
13:18:47.302 > echo:; Max feedrates (units/s):
13:18:47.302 > echo:  M203 X0.00 Y0.00 Z0.00 E0.00
13:18:47.302 > echo:; Max Acceleration (units/s2):
13:18:47.302 > echo:  M201 X1500.00 Y1500.00 Z100.00 E5000.00
13:18:47.302 > echo:; Acceleration (units/s2) (P<print-accel> R<retract-accel> T<travel-accel>):
13:18:47.302 > echo:  M204 P600.00 R1000.00 T800.00
13:18:47.302 > echo:; Advanced (B<min_segment_time_us> S<min_feedrate> T<min_travel_feedrate> J<junc_dev>):
13:18:47.302 > echo:  M205 B20000.00 S0.00 T0.00 J0.01
13:18:47.302 > echo:; Home offset:
13:18:47.302 > echo:  M206 X0.00 Y0.00 Z0.00
13:18:47.302 > echo:; Auto Bed Leveling:
13:18:47.302 > echo:  M420 S0 Z10.00 ; Leveling OFF
13:18:47.302 > echo:; Material heatup parameters:
13:18:47.302 > echo:  M145 S0 H215.00 B40.00 F0
13:18:47.302 > echo:  M145 S1 H250.00 B60.00 F0
13:18:47.302 > echo:; Hotend PID:
13:18:47.302 > echo:  M301 P22.20 I1.08 D114.00
13:18:47.302 > echo:; Z-Probe Offset:
13:18:47.302 > echo:  M851 X-40.00 Y10.00 Z0.00 ; (mm)
13:18:47.302 > echo:; Filament load/unload:
13:18:47.302 > echo:  M603 L0.00 U100.00 ; (mm)
13:18:47.302 > echo:; Filament runout sensor:
13:18:47.302 > echo:  M412 S1 ; Sensor ON
13:18:47.302 > ok
M92
13:30:59.880 >   M92 X0.00 Y0.00 Z0.00 E0.00
13:30:59.880 > ok

IMG_0674

Might be related: #25082

Bug Timeline

Noticed with bugfix-2.1.x branch from yesterday

Expected behavior

Expected it to reset to default values.

Actual behavior

Shows all zeros or garbage

Steps to Reproduce

M502
M500
M503
M92

Version of Marlin Firmware

bugfix-2.1.x

Printer model

Creality CR10S

Electronics

Silent Board

Add-ons

SSR

Bed Leveling

ABL Bilinear mesh

Your Slicer

Simplify3D

Host Software

SD Card (headless)

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Marlin.zip

@sanders-f
Copy link

The same problem. You can manually add steps per unit by comand M92 and feedrates by comand M203 and it will work. Like:
M92 X80 Y80 Z400 E500
M203 X300 Y300 Z5 E25
M500

I decided to switch to 2.1.1 Marlin from 2.0 and for half a day I could not understand what happened. Before that, I did not use EEPROM at all. I even tried resetting the EEPROM with a separate sketch, but that didn't help.

@ellensp
Copy link
Contributor

ellensp commented Dec 12, 2022

How did you compile this Arduino IDE or Vscode with PlatformIO ?

@ilendemli
Copy link
Author

@ellensp VSCode with PlatformIO

@ellensp
Copy link
Contributor

ellensp commented Dec 12, 2022

Confirmed, I can replicate this.

@ellensp
Copy link
Contributor

ellensp commented Dec 12, 2022

A quick bisect later shows issues introduced in b4fbe4f

@thinkyhead
Copy link
Member

Thanks, forgot about that PROGMEM specifier!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants