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.

TMS320F28P650SK: Functions written for the CLA, do not comply to the RETAIN attribute

Part Number: TMS320F28P650SK


Tool/software:

I want to keep some functions compiled even if I will not be referencing them in the main CLA code.

Functions written for the C28x can be given the attribute RETAIN will always be kept inside the memory map. My problem is that when I'm doing this for functions inside a .cla file, they are being excluded from the built project.

The functions I'm using:

* I tried both #pragma and __attribute__  method

* The optimization level is OFF

* The functions above are written inside a .cla file
* I also tried with the attribute "used" and it still doesn't work

Is there a way to force the CLA compiler to keep functions even if they are not referenced anywhere?

Thank you in advance for any help you can offer!