On Wed, Oct 1, 2008 at 7:11 AM, Isaac Marino Bavaresco wrote: > I=B4m using the PIC18 TCP/IP boot-loader from Microchip, and it indeed is > almost transparent to the application developer. > > The only change to the code one must do is to reduce the length of the > program FLASH segment in the linker-script, because the boot-loader > resides at the end of the flash memory. > > The boot-loader then takes the first two instructions of the > application, saves them in an area inside itself followed with a jump to > the third instruction and replaces the original instructions with a jump > to its own start. > > When calling the application, the boot-loader just jumps to the saved > original instructions. Bootloader is almost transparent to the application developer. But there is a problem that the configuration words are shared. So you may end up make your bootloader not functional if you change the wrong bits (say extended instruction or sometimes the clock settings). Xiaofan -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist