Even with a backup...
DTB:
This question comes up occasionally, for all the reasons you specify.
I too have wished for an electronic syringe.
The idea below pre-supposes retrievable backups.
Gmail’s storage is free up to 1M I believe.
If one has several versions of code and several changes to the wiring of a project, knowing which version you used can be a problem.
Even etching the project title and design version into the PCB may not be good enough. While you can usually reverse engineer wires that you see, code changes may come about later as the project is being finished.
For projects to be encased in epoxy with no display, I add this safety net. Before my last programming download, I add a short Morse Code sequence to the beginning of the program. A LED will flash the Morse Code sequence once on power-up, before the program goes in to the “main” execution area.
Just the file name – “APOHv5” for example.
The links below tell much more as to how. It is the concept I wished to share.
All the best.
Terry
http://www.picaxeforum.co.uk/showthread.php?t=9636&highlight=morse+code
http://picaxe.orconhosting.net.nz/morse.bas