Ake Hedman wrote: > I am writing a bootloader which makes it possible to bootload nodes over > Ethernet. For this I use and external serial EEPROM which I first load > with the code and then let the bootloader program this into the chip of > the device. In my algorithm I first set all positions of the serial > EEPROM to 0xff and the write the actual code over this. > > My question is will this count as *two* programmings of the serial > EEPROM to take away from the lifetime of it? YES it counts as a programming cycle, and is UNnecessary. You need only program the serial EEPROM with your new date. If your code is sound, it will not execute any of the leftovers. And code rarely shrinks in size anyway. Robert -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist