I am trying to use MSPBoot to implement a Bootloader for the MSP430FG477 that takes the image via SPI from an external flash, which the application previously receivend via Bluetooth.
I wonder whether it is feasible to change MSPBoot in the sense that the bootloader is just an autarkic function (residing at the end of the FLASH) of the main application, which overrides the beginning of the FLASH, where the main app resides.
Wouldn't this have the advantages of:
-being able to debug the application via CCS, since we basically just have a single program and not a separated program for the bootloader and the main app? When the bootloader is always started first I guess CCS cannot debug the application since it doesn't know the current cources.
-not having the problem of how to obtain the very first version of the application.
-having no need to communicate via external variables between the bootloader and the main app?
I am currently trying to implement that idea, but since I am new to writing bootloaders I am interested if my thoughts are correct and if there may be general reasons that prevent that idea from working (which could save me some time until I maybe stumble over that issue myselve).
Thank you for any comment!