This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP430F149: Avoid __mspabi_func_epilog_4 call in function exit

Part Number: MSP430F149


Tool/software: TI C/C++ Compiler

I have a couple of functions that will install a firmware update, these function are resident in the sense that they persist in code memory while the rest of the code is being updated. The problem is that at the end of one these functions the compiler will insert a call to __mspabi_func_epilog_4. At the point this function will be executed this function has been erased, not to say that from one firmware version to another it may move.

Is there a way to instruct the compiler not to call this epilog and simply compile a standard (i.e. stand-alone) function exit ?