On my MSP430F5310, I have implemented an application which is based on a (also self-implemented) communication library, which handles the bus connection.
I would like to be able to reprogram the application part via the bus. Implementing a bootloader which also relies in the communication library is not a big thing, but currently, the linker happily mixes the objects from both library and application.This makes it impossible to replace only the application without touching the library.
It would be helpful to have each of them in separate flash segments. Is there a way to tell the linker to do this? I know how to do it for single objects, but I am not exactly eager to put a segment directive before each and every function and variable.
Any ideas?
Max
EDIT: I am using CCS5.