Hi Again,

Just so there is no confusion...

The bootloader needs to be burned onto the PIC with an Epic or PICStart Plus, or some other chip burner.

After this has been done, you will be able to load your actual application onto the PIC via the serial port.

All that "DEFINE LOADER_USED 1" does is tell the compiler that you're using a bootloader. This is required so that the compiler knows not to write into the first few memory locations or the last 255 bytes. This is where the bootloader resides.

Then, programming begins by the DTR signal on the serial port resetting the PIC. The PIC starts up in the bootloader code and waits for a momet to see if new code will be loaded onto the PIC. If not, then it starts your application. If so, then it loads its memory with comes down the serial port.

When it's finished, the application starts.

Have fun!!!