Since you never want to enter the bootloader with a jump from the reset vector (which is the normal way) you dont even have to add define loader_used 1 or what ever it should be.
You just need to write the bootloader and program it to the high memory. Then you need to set the ICD2 to only program a certain momory area and then you can write your software as the bootloader didnt exist. This will over write the reset vector but in your case that is a good thing :-) Just make sure you dont write or erase the area where the bootloader lives.
Then with a jump to your address for the loader you are ready to go. This is similar to the way I program some of my pics, from a 64k ee-card with the difference I only do it at startup or never at all.
GPRS flashing seems to be a fun idea, that is why we like to write our own loaders!
An other way is to program the loader, e-mail the applicationsoftware (since the PIC is blank you will end up in the loader anyway. Bootload the PIC and when it is all finished read out the hexfile with the ICD2 and use that 2-in-1 hex file for all the other 2 million pics or so in your production line.
Hope I was clear....
/me




Bookmarks