I hate it when that happens. =20 -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of= John Coppens Sent: Tuesday, May 30, 2017 9:39 AM To: piclist@mit.edu Subject: [PIC] On Thu, 25 May 2017 10:46:14 +0100 Cristiano Cesaretto wrote: Finally I determined that the problem was with the resident boot software i= n the PIC (not my own code). In some rare cases, the bootstrap code would e= xecute the flash programming routine, and delete the actual firmware code. = (This, in spite of several tricks to protect this from happening) When all was well-tested, I removed the bootstrap code, recompiled my own c= ode to boot by itself, and the circuit never failed since (going on 3 years= ). John -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/chang= e your membership options at http://mailman.mit.edu/mailman/listinfo/piclis= t --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .