Looking at the code there could be a more clever way to validate (and potentially repair) a flash operation: 1. Read current MAC address and remember it 2. Flash image 3. Read MAC address and compare with the one remembered 4. In case the current and remembered don't match restore the old by only writing the old MAC address While this won't guarantee failure-freedom it would certainly result in less occasions on which the MAC address of the node is damaged.
Looking at the code there could be a more clever way to validate (and potentially repair) a flash operation:
While this won't guarantee failure-freedom it would certainly result in less occasions on which the MAC address of the node is damaged.