Parts Included To Program EEPROM from USB drive
T Chap
Posts: 4,223
I have been working on methods to remotely update a program. From a larger program I copied the basics required to load a .eeprom from a USB drive using a vinculum. You will have to determine how to launch it in your situation. I use a menu system with various buttons, scroll and select "Update Software?" option and press yes. Another idea could be to detect the presence of a USB drive inserted, plus the presence of a certain file name(possibly higher rev file number), and automatically update and reboot. The newer rev number could be stored on the USB or extra eeprom to track revisions for 'autoupdate' mode.
There is included in the parts a checksum, that reads the EEPROM and calcutates the sum, reports success or error. I have intentionally altered an eeprom and produced the error message, otherwise it always reports success.
It takes maybe 1-2 minutes to copy the files over, then maybe another 1-2 minutes to checksum the file.
A better idea may be to checksum the USB first, then afterwards copy it to insure the recipient transferred it properly to USB. I have not gotten this to fail yet after numerous transfers.
Post Edited (Todd Chapman) : 11/29/2009 5:49:36 PM GMT
There is included in the parts a checksum, that reads the EEPROM and calcutates the sum, reports success or error. I have intentionally altered an eeprom and produced the error message, otherwise it always reports success.
It takes maybe 1-2 minutes to copy the files over, then maybe another 1-2 minutes to checksum the file.
A better idea may be to checksum the USB first, then afterwards copy it to insure the recipient transferred it properly to USB. I have not gotten this to fail yet after numerous transfers.
Post Edited (Todd Chapman) : 11/29/2009 5:49:36 PM GMT