Hello,
I've come to the phase that I would like to integrate my Bootloader to the application project. My goal is to have only one object code file (.txt) what I could easily program into the device. So the user application together with the Bootloader would go into device with one programming event.
I have been thinking/trying of three different ways of doing one object code file:
1) Just adding the source of my bootloader to same project as the user application project. Building them together and modifying the linker script so that linker would place the bootloader to right location in BSL area.
2) Keeping the bootloader as a separate project and compiling it as a library module. Then adding the library module to the user application project. And again modifying the linker script to place the bootloader to right location in BSL area.
3) Keeping the Bootloader as a separate project and building it as an individual project. Then merging the object files (.txt) to become one object file.
With the options 1) and 2) I have faced some problems, since I don't understand well enough the building chain of IAR. Before going too deep on my problems I would like to know what is the best way of doing the thing I am currently trying. I am pretty sure, that someone has been thinking this same issue.
The option 3) I haven't investigate yet. Maybe there is some tool for merging the msp430-txt type of object files or it is very easily done manually as well.
I am using MSP430F5XXX family with IAR environment.