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.

关于ccs8生成lib文件

在使用CCS8生成lib文件的时候,如何保证lib文件中的某个函数,在其他使用它的工程中被编译到指定的地址。

比如我现在有两个工程,一个工程为生成lib文件的工程(以下简称工程1),另一个工程为使用lib文件的工程(以下简称工程2).在工程1中有某个函数fun(),在工程2中需要使用它,且希望他的存储位置在flash的addr处。工程2可代表任何工程,即我希望在任何工程中使用工程1生成的lib中的fun()函数时,这个fun()的位置都是在flash的addr处。

请问应该如何实现?