Other Parts Discussed in Thread: MSP430F5510
Hello!
Just to preface this, I'm a bit new to MSP development, so some of my questions may seem a bit obvious or simplistic, for which I apologize in advance.
Anyway, I'm attempting to develop an application which will allow for another chip interfacing with the MSP430 to be able to reprogram it in the field. I have some ideas about how I would like this to be done, but first I had a couple of preliminary questions.
First of all, if all I am looking for is the ability to reprogram the entire flash section, would it be better to just use the BSL that is present on the chip, in order to avoid the chance that I would overwrite the bootloader when programming the flash (assuming the built in BSL is in protected memory, which I think it is),
Second of all, if defining my own bootloader in C code using CCS, a) how would I redefine the reset vector so that the chip would always reset to, say, something I've defined to be in a section I've called '.bootloader' (in the linker file lnk_msp430f5510.cmd) instead of the standard .text, and b) assuming I do that, how would I make sure that the program progressed into main, which I would keep in .text, after running through the bootloader and making sure the chip was programmed?
A possible third question would be, when writing the entire flash, would I need to also write to .bss, or are those values that are initialized from flash during operation?
Thank you!