Hi,
I just want you to know that it exists an easy to use open source
bootloader that supports almost all Microchip devices in one package.
Each firmware for a device family supports all current devices in that
family without modification of the actual code. Only minor settings needs to be changed in a separate file.
It supports the following familys: PIC16, PIC18, PIC24, and dsPIC. Se the homepage for more info and download https://picbootloader.com