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.

Include CLAMath library to existing project

Other Parts Discussed in Thread: CONTROLSUITE

Hello to all,

I am working on the cla_logic_cpu01 example project on 28377S launchpad. I want to include the CLAMath library in the .cla file but even after adding in the compiler #include search the path : "C:\ti\controlSUITE1\libs\math\CLAmath\v4_00_01_00\include" I am still getiing the following errors when I am trying to use a CLAMath function:

Description Resource Path Location Type
#10010 errors encountered during linking; "cla_logic_cpu01.out" not cla_logic_cpu01 C/C++ Problem
<a href="file:/c:/ti/ccsv6/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain cla_logic_cpu01 C/C++ Problem
unresolved symbol _CLAatan2, first referenced in ./logic.obj cla_logic_cpu01 C/C++ Problem

Which extra files do I need to add in my project?

Thanks.

  • Hi,

    In the project properties, C2000 Linker -> File search Path

    In the top box, --library you need to add the name of the math library e.g. cla1_math_library.lib. you will find the different libraries under C:\ti\controlSUITE\libs\math\CLAmath\v4_00_01_00\lib. Now you have a couple options here. If you want to use the tables that are already in the device' CLA datarom you need to add "cla1_math_library_datarom.lib" and "2837x_c1bootROM_CLADataROMSymbols.lib". Additionally if you --float_support=fpu32, you need to add the fpu32 equivalents of these libraries ---- you will see they have a _fpu32 suffix.

    In the lower box --search_path, you need to add the path where the libraries are at, e.g. C:\ti\controlSUITE\libs\math\CLAmath\v4_00_01_00\lib