
Here’s an application note with comprehensive information on how to write your own bootloader for the Microchip PIC16 and PIC18 families. Microchip also has provided a link to the code development software. Good reading for both the beginner and experienced coder.
