Quote Originally Posted by Jumper View Post
http://www.picbasic.co.uk/forum/showthread.php?t=4498

An example of a picbasic bootloader I wrote. BUT you might have some problems doing this way since you have to remember the pic basic pro 16-bit limitation in adressing. So for anything bigger than 64kbytes (32k words) you have to break new ground but for smaller devices this works great.

/me
Hi Jumper, it is not clear to me this point:
I have a GPRS modem in my application, so I would like to send it the new firmware to be programmed via e-mail. The main program should receive it, store it in an EEprom then jump to the "bootloader" in the high memory, that read it again and reflash the PIC.
So my bootloader is not "classic style" and is not useful to reprogram the PIC via serial line.
The question is: once the bootloader is programmed in the PIC, is there a way to continue using the MPLAB ICD2 to program the main application in the PIC ?
Thanks
Marco