Reset Parameters to Default Values Upon Firmware Update/Change Attempt

I am trying to build a custom version of Copter-4.0.5.
I want to reset all the user settable parameters to default values on firmware update/change attempt.
I think the eeprom needs to be cleared before update for that purpose.
How do I do that?
I have been searching discourse, GitHub issues and other places but was unable to find anything satisfactory.
Any kind of help is really appreciated.

The easiest way it to load the plane FW and after that the copter FW. The parameters will be 100% set to defaults

1 Like