器件型号: TMS320F280039C
尊敬的 champs:
我向我们的客户询问这个问题。
用户已使用 F28003x CLA 代码。
现在、他们希望将一些 CLA 函数/任务放入静态库中、就像我们通常对 C28x 所做的那样(如 driverlib.lib)。
- 他们可以将一些 CLA 函数/任务放入 CLA 的静态库中吗?
- 如果是、用户如何操作? 请您明确告诉我们吗?
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.
器件型号: TMS320F280039C
尊敬的 champs:
我向我们的客户询问这个问题。
用户已使用 F28003x CLA 代码。
现在、他们希望将一些 CLA 函数/任务放入静态库中、就像我们通常对 C28x 所做的那样(如 driverlib.lib)。
尊敬的 Wayne:
对延迟深表歉意。 为 CLA 创建静态库的步骤如下:
#include "my_lib.h"#ifdef __TMS320C28XX_CLA__ // only compile for the CLA
// my_lib.h file content, usually externs for all the functions in my_lib.cla
#endif

如果他们有任何其他问题和/或希望我分享我为尝试这种方法而制作的示例项目、请告诉我。 他们可以在步骤 10 之后通过查看.map 输出文件中是否存在来验证构建是否在使用 lib 文件。
此致、
Delaney