Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22733

IAP for MSP430F5328

$
0
0

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.


Viewing all articles
Browse latest Browse all 22733

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>