Simplest solution: Buy a pre-flashed EEPROM chip for your board as backup, they shouldn't cost anymore than about ?/$10.