Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hi there,
I am wanting to create a static library containing functionality used by tasks running on the CLA. As such, the static library will mostly be header files with inline functions declared and defined. Was there a preferred way to set this up in CCSv12? I have created a new CCS Project with the Output Type set as a Static Library.
I'm not sure how to get CCS to pull in the required CLA Math library I need - normally this is done in the linker configuration I think, but I'm not entirely sure how to achieve.
In one such file I've included "CLAmath.h" and in the Project's C2000 Compiler option, added the path to the CLA Library from C2000ware to the Include Options, and added _TMS320C28XX_CLA__ as a predefined symbol. I'm not sure if this is the right approach, it certainly feels incorrect.
At the end of the day I would like to create a number of header files that a *.cla file could include. These header files contain some functions that utilize the CLA math library and can be compiled as a static library to be included in a number of different projects.
Ideally I'd like to use the CLAx_math_library_eabi.lib file directly, but I saw on another post that CCS cannot internally create a static library which includes another static library (https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/611386/ccs-how-can-i-build-a-static-lib-which-include-two-lib-in-ccsv7).
Cheers,
Jim