-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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] SKR PRO, M502 M500 twice to update EEPROM #17627
Comments
I have the same problem but this one has been around for months...It affects a lot of SKR PRO users, I know 3 other people who use this card and we have exactly the same problem. Moreover and randomly, the BLT doesn't work anymore after an M502 M500 as seen in this bug report #16169 |
I saw the same issue yesterday, with two M500 calls being required to write to the flash. I did NOT see the issue if I added Debugging the code it appears that the command to erase the flash sector is failing, which is preventing the write from occurring. It then works on the second try. I don't know the reason for the failure the first time, I haven't debugged that far.
|
I was about to post a pull request to fix the double-M500 issue, when I thought to test the BLTouch issue @BastR mentioned. Much to my surprise, he is correct! After writing to the flash my BLTouch stops responding. I verified with a logic analyzer that the servo output goes to a 100% duty cycle after writing to the flash. |
This has now been resolved in the newest bugfix. So I am closing this. Thanks. |
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
Hi,
I noticed this while setting up sensorless homing. If I create a new firmware and change the default values in the firmware and then compile, I must run M502, M500, M501 twice to see the changes. If there is an EEPROM mismatch, this also persists until the second set of M502, M500, M501.
In the SKR PRO pins file, does this have to do with the default FLASH based EEPROM? Could there be more of a description in the pins file as to how each of these options work, FLASH based and SRAM based?
My Configurations
Marlin-2.0.x.zip
Steps to Reproduce
Expected behavior: run M502, M500, M501 once.
Actual behavior: Must run M502, M500, M501 twice to see the changes in EEPROM.
The text was updated successfully, but these errors were encountered: