Hi All,
I have created two separate projects, one for the boot loader and one for the application.
Divided the flash size between the bootloader and application as below,
Bootloader linker file:
Application Linker File:
I have written small bootloader code as below and jump to main application.
int main( void )
{
// Stop watchdog timer to prevent time out reset
WDT_A_hold(WDT_A_BASE);
GPIO_setAsOutputPin(
GPIO_PORT_P6,
GPIO_PIN0
);
__delay_cycles(500000);
GPIO_setOutputHighOnPin(GPIO_PORT_P6, GPIO_PIN0);
__delay_cycles(500000);
GPIO_setOutputLowOnPin(GPIO_PORT_P6,GPIO_PIN0);
asm("mov.w &0xFBFE,PC");
}
and IAR config for Bootloader.
But couldn't able to jump to main application.
Could anyone please help on this.