Problem is, if you overrun by even one byte this will erase the next page. Definitely not more than 8192 bytes?
The file in question is
~ele_up.~tm, and as far as I know, it should never exceed 8192 bytes. It should always be exactly that size. Anyone who can show me otherwise, should do so ASAP.
Now I will concede that there could be an error in "upload.exe". But that is primarily someone else's *COUGH*your*COUGH* code.

I only added the reboot code and a small bit of Windows serial-port initialization.
___________
Tony Fabris