Have you activated the Marlins EEprom functions if not or if you are having problems. You can try this with a LCD Menu option.
Using marlin 2 menu Click encoder > change to Configuration
Click encoder change to "Restore Failsafe" to get Data back from firmware
Click encoder change to "Store Settings" to save the data
M500, M501 and M502 are Save Memory, Load Memory, and Restore Failsafe options on the LCD menu
Using marlin 2 menu Click encoder > change to Configuration
Click encoder change to "Restore Failsafe" to get Data back from firmware
Click encoder change to "Store Settings" to save the data
M500, M501 and M502 are Save Memory, Load Memory, and Restore Failsafe options on the LCD menu