I am working on custom bootloader for msp430f2274 for image upgrade over Rs485. The bootloader update the current application and maintain the image state which is validImage or InvalidImage. On StartUp the controller in boot mode and check the image state which is stored in flash. If the imagestate is valid it jumps to application mode if the imagestate is invalid then it stays in bootmode and wait for the imageupgrade packet.
From BSL mode I am able to update application successfully but when I am in application if I try to update the application it change the image state and come to the bootmode. In BootMode controller resets continuously at a point when i am enabling the interrupts.( __enable_interrupt(); ) .
But when I do POR the controller is working fine in bootmode.