Menu

Topic-icon Restore Config from EEPROM

More
2 weeks 2 days ago #29534517 by zshivers

Is there a Microbasic command that can be used to restore all RAM configuration parameters back to their EEPROM values? I need what the EELD command provides (EELD is serial only, it seems).

Interestingly, there is already EES which does RAM>EEPROM. I'd like EEPROM>RAM.

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago - 2 weeks 1 day ago #29534519 by Gabriel_Isko

I don't know if there is anything that does exactly what you are asking for, but the first workaround that comes to mind is using %reset to reboot the controller. I will check to see if there is a command that can accomplish this without rebooting.

Please Log in or Create an account to join the conversation.

More
4 days 17 hours ago #29534532 by zshivers

%reset is a serial command, right?

Were you able to find anything?

Please Log in or Create an account to join the conversation.

More
4 days 16 hours ago #29534533 by Gabriel_Isko

%reset is a serial maintenance command.

Unforutnately there is no other way to reload the flash settings. You cannot call reset in microabassic either.

Please Log in or Create an account to join the conversation.

More
4 days 16 hours ago #29534534 by zshivers

Thanks for your reply! I'll find another way.

Perhaps this could be added as a future feature? It seems less risky than the EESAV command, which is already available. And it would let you safely restore the config without having to save every config parameter you change into local microbasic variable.

To give you an idea of my use case - I created a homing sequence were I wanted to remove encoder limits and change the current triggering. A lower current trigger was required to minimize risk of damage during a homing operation. After the homing is complete, it is convenient to restore the original parameters from EEPROM instead of reading the changed parameters, storing them in variables and then restoring them manually. It would also be less error prone.

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Go to top