-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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] DATA STORED IN FLASH EEPROM DOES NOT PERSIST MORE THAN ONE POWER OFF/ON/OFF CYCLE AFTER AN M500[BUG] (short description) #16532
Comments
Can you try with the latest |
bullshit, too much caps |
Sorry, thisiskeithb. I first tried copy/pasting my Configuration.h and Configuration_adv.h files into the Marlin folder of the 11 Jan 2020 Marlin2.0.xbugfix and compiling with the platformio.ini environment set to default_envs = STM32F103RC_bigtree_NOUSB, as I do for the 11 Dec 2019 version. That compile failed with, Error: Unknown environment names 'STM32F103RC_bigtree_NOUSB'. Valid names are ..." I tried changing the environment name to STM32F103RC_bigtree_USB, but once I got past the other issues, the compiler said the resulting firmware was not going to fit in memory. I did succeed compiling a firmware.bin, using the evironment name STM32F103RC_bigtree, after updating Configuration_adv.h in response to the following two errors from SanityCheck.h: Now my compile succeeds, but throws the following two cautions: "Compiling .pio\build\STM32F103RC_bigtree_USB\src\src\lcd\dogm\u8g_fontutf8.cpp.o "Compiling .pio\build\STM32F103RC_bigtree\libb84\USBComposite\Joystick.cpp.o I tested the new firmware.bin in my Ender 3 and can confirm that this bug has been corrected. Many thanks also to sjasonsmith for his comment below, which arrived while I was updating this one. |
It sounds like you are missing this fix which is in 2.0.1 (NOT 2.0): I’m on my phone so can’t check your configs easily, but I am guessing you have print counters enabled, which will write to the flash every time you turn on the printer. This was corrupting the flash contents prior to this fix. |
NOTE: Sorry for "SHOUTING"... |
Exactly right, Jason.
Thank you for your quick & helpful response.
I have updated the bug thread with what I learned.
I was caught off-guard by a PlatformIO environment name change for the SKR E3 mini at 2.0.1. Hoping I guessed correctly which one to use.
I have noted two cautions thrown by the compiler, in case they need further attention. I won’t “risk” raising a bug report on those points, since firmware.bin did compile anyway.
Reported bug now fixed.
New issue for me was that firmware.bin was not renamed after the flash, so the flash kept repeating on each power cycle until I removed the SD card. Again, no plan to report as a BUG, but noted in case it actually is significant.
Thank you for all you do to help our community.
Cheers,
spj
From: Jason Smith <[email protected]>
Sent: January 11, 2020 1:02 PM
To: MarlinFirmware/Marlin <[email protected]>
Cc: Thinkersbluff <[email protected]>; Author <[email protected]>
Subject: Re: [MarlinFirmware/Marlin] [BUG] DATA STORED IN FLASH EEPROM DOES NOT PERSIST MORE THAN ONE POWER OFF/ON/OFF CYCLE AFTER AN M500[BUG] (short description) (#16532)
It sounds like you are missing this fix which is in 2.0.1 (NOT 2.0):
#16118<#16118>
I’m on my phone so can’t check your configs easily, but I am guessing you have print counters enabled, which will write to the flash every time you turn on the printer. This was corrupting the flash contents prior to this fix.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#16532?email_source=notifications&email_token=AIW3WXSGDVFZBV7N3U45R6TQ5ICRRA5CNFSM4KFQHW22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIWHQZI#issuecomment-573339749>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIW3WXUWEOQ5Z6NL7LVVBH3Q5ICRRANCNFSM4KFQHW2Q>.
|
@Thinkersbluff, thanks for letting us know it now works. Could you close the issue now that it is resolved?
There are always some warnings caused by some of the external libraries. I mostly recall seeing them in LCD and NeoPixel libraries. Those are safely ignored. Ideally Marlin would not generate warnings in its own code, but it can be hard to get everything right with so many possible combinations. |
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. |
Bug Description
My Configurations
MyConfigs.zip
Steps to Reproduce
Expected behavior: [What you expect to happen]
I expect all of the data I store in EEPROM to be restored every time Power is turned back ON, regardless of how many times I cycle Power OFF/ON, after I originally store that data. I do not expect to have to deliberately store that data every time, before I turn Power off.
Actual behavior: [What actually happens]
If "Store Settings" is selected on the Bed Leveling menu, after creating mesh data or after setting a non-zero value for Fade Height, then power is turned OFF/ON, the data is restored (which is correct).
If the power is then cycled OFF/ON again, without first issuing a second Store Settings (M500) command, the data stored is not restored (this behaviour appears to be a bug.)
If, instead, the Store Settings menu is selected or an M500 code is issued, before cycling Power OFF, then the originally stored values are again restored, as they should be, when Power is turned back ON.
Additional Information
The text was updated successfully, but these errors were encountered: