int main()
{
    CLKDIVbits.CPDIV=0;                                                             //Set the system clock to 32mhz.
	CLKDIVbits.RCDIV=0;                                                             //Set internal RC to product 8mhz clock.
    while(OSCCONbits.LOCK==0);                                                      //Wait for the PLL to lock up.

    BootLoader();                                                                   //Call the Boot Loader
    return 0;
}
void AppBoot( void )
{
    BootLoader(  BOOT_MODE_APP );

} // AppBoot