"peed all over the data", Must be a technical term... :) Alan -----Original Message----- From: dave vanhorn To: PICLIST@MITVMA.MIT.EDU Date: Tuesday, February 16, 1999 4:44 PM Subject: Re: filling unused code space >At 01:17 PM 2/16/99 -0800, Gerhard Fiedler wrote: >>At 14:18 02/16/99 -0500, dave vanhorn wrote: >>>Wouldn't JMP Start suffice (or whatever you call the beginning of your >>>code), which is where the reset vector will take it anyway? >> >>why not leave it unprogrammed, as somebody suggested before (so you can add >>something in case you need it)? that's something like ADDLW FFh (on the >>14bitters) and either it wraps around to reset, or you put a "jmp here" >>endless loop at the end and let it get hit by the watch dog. which seems to >>be the proper way to do it. > >Depends on the system, I can see leaving a block of codespace somewhere >blank, but you aren't going to need inbetween routines, since you can't get >there anyway. Everything I work on at the moment is flash, so I'm not >likely to need to go burn a single byte change anywhere, that would be more >work than reloading the whole codespace. > >You may not have a watchdog.. Our financial systems don't. We determined >that a watchdog couldn't possibly stop the processor before it peed all >over the data, if it wanted to, and so we used JMP 0 equivalents to force a >reset. >