Results 11 to 16 of 16
Thread: M499 - EEPROM Invalidate Command
-
08-10-2017, 05:50 PM #11
M499 is not an officially supported GCode. If you add the code to your firmware it will work. But, you don't really need it to get your firmware's EEPROM updated. Its just a 'Nice to Have'.
-
08-11-2017, 02:56 AM #12
- Join Date
- Aug 2017
- Location
- Yorkshire, UK
- Posts
- 9
Thanks Roxy, that makes things a bit clearer.
-
08-11-2017, 06:52 AM #13
-
08-11-2017, 08:26 AM #14
- Join Date
- Aug 2017
- Location
- Yorkshire, UK
- Posts
- 9
So, I've been looking at this trying to understand it - You edit Config.h with the specifics for your printer, you flash the printer, print something and turn off the printer. When you turn it on again the controller ignores the edited Config.h and restores the pre-flash values held in the Eeprom. Is this correct? If it is, do you need to add M500 to the end of the Config.h before you flash? And if M503 prints the settings from RAM, how do you print the settings from the Eeprom?
Sorry if I'm being a pain, but I really feel I need to understand this.
-
08-11-2017, 09:42 AM #15
The way Marlin works is if the EEPROM is enabled, it fetches all its values from the EEPROM. So, when you first turn on the EEPROM capability, you need to do a M502 to load the values specified in the Configuration.h file instead. And then save those to EEPROM with a M500. At this point you can just tweak any value you want changed without re-building and uploading the firmware.
This new command M499 just loads a version number that can never happen into the EEPROM. So when Marlin powers up, it checks the firmware version number and compares it against the data version in EEPROM. There will be a mis-match and Marlin will default to using the Configuration.h settings until a new data set is saved in the EEPROM.
-
08-11-2017, 05:01 PM #16
- Join Date
- Aug 2017
- Location
- Yorkshire, UK
- Posts
- 9
Thanks Roxy, it's beginning to make sense now. I'll play some more tomorrow and see if I can get it to work nicely. Thanks again, you're doing great work sorting out our problems.
Ender 3v2 poor printing quality
10-28-2024, 09:08 AM in Tips, Tricks and Tech Help