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.
I am working on TMS320F28388D CLA, for project I need to use sine function in my CLA code but if i tried including #include "math.h" I'm facing this error
warning #10461-D: Invalid to call C28 function "sinf" defined in "C:\ti\ccs1040\ccs\tools\compiler\ti-cgt-c2000_22.6.0.LTS\lib\rts2800_fpu64_eabi.lib<s_sinf.c.obj>" from CLA file "./cla_ex1_asin_cla.obj"
I tried using #include "CLAmath.h" I cant able to go through this file
is there any solution for how to include math lib for CLA and how to use functions for sine and trigonometric functions..
Now I am able to include CLAmath.h but for my project i need to use sine function and if i tried to refer sinf function it was raising this error
undefined first referenced
symbol in file
--------- ----------------
CLAsincosTable ./cla_ex1_asin_cla.obj
CLAsincosTable_Coef0 ./cla_ex1_asin_cla.obj
CLAsincosTable_Coef1 ./cla_ex1_asin_cla.obj
CLAsincosTable_Coef2 ./cla_ex1_asin_cla.obj
CLAsincosTable_Coef3 ./cla_ex1_asin_cla.obj
CLAsincosTable_TABLE_SIZEDivTwoPi ./cla_ex1_asin_cla.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "cla_ex1_asin.out" not built
>> Compilation failure
makefile:151: recipe for target 'cla_ex1_asin.out' failed
gmake[1]: *** [cla_ex1_asin.out] Error 1
makefile:147: recipe for target 'all' failed
gmake: *** [all] Error 2
Anyone know how to fix this issue please let me know..
Anyone Know where these tables are declared(location) or which file I need to include in the project to eliminate this, any information please share. Thank you
Regards,
Navodaya.
Hi,
Apologies for the delay. Have you included the clamath.lib library in your CCS project?
Regards,
Veena
Hi,
Yeah, I included CLAmath.h in my project from here "C:\ti\c2000\C2000Ware_4_02_00_00\libraries\math\CLAmath\c28\include"
or do I need to include CLAmath.lib LIBRARY FILE ? if yes can you please text in which directory did the file exists, since i cant able to find it.
and if i run the project it says tables was not declared like that which i mentioned above.
These are my Library file from "C:\ti\c2000\C2000Ware_4_02_00_00\libraries\math\CLAmath\c28\lib"
i already imported this dir in my project
Yeah, I included CLAmath.h in my project from here "C:\ti\c2000\C2000Ware_4_02_00_00\libraries\math\CLAmath\c28\include"
This is only the header file. To use the library, the .lib file need to added to the CCS project build. You can just add the required lib to your CCS project.
Regards,
Veena
yeah I understand, previous reply I attached the 2 screenshots all my includes and other was all available .lib files for clamath can you please say what to include (i think i already included the path)
Hi,
The image you shared is the include path folder. That is telling the compiler to use those folders for resolving the #inlcude headers. The lib should be included be included in the project -
You can do it either by adding the lib to your CCS project
Or by adding the lib in the Linker options -
Regards,
Veena
Hi,
i tried including using first method as you said cla1_math_library_datarom_fpu32 i got this console error message Link For console file related to contains TI-COFF object files which are incompatible with the ELF output file.
Regards,
Navodaya
Hi Veena, I did what you said and i shared the error I which got in last reply. if info regarding that please let me know.
Regards,
Navodaya.
Please note the warning in the console log :
Please make sure you are using the correct library. I would recommend you start with a cla library example
Reagrds,
Veena
Hi,
I made some modification in properties and this was the only warning left try help me with this
warning #10247-D: creating output section "CLA1mathTables" without a SECTIONS specification
Regards,
Navodaya.
Please refer to the linker cmd files used in the CLA math examples
Regards,
Veena
CLA Math examples are available in C2000ware\libraries\math\CLAmath\c28\examples.
Import any one example. Right click ->Build Configuration-> Set Active -> Select the device
Regards,
Veena
Hi Veena,
Thank you for sharing information. I referred those examples properties and modified accordingly. I got this warning message, can you please say what to add under SECTIONS to eliminate this warning
warning #10247-D: creating output section "CLA1mathTables" without a SECTIONS specification
and I am using same .cmd files which i shared above.
Regards,
Navodaya.
Please add the mentioned section in the linker cmd file. I believe it is already present in the linker cmd file
Regards,
Veena
Hi Venna Thank you for helping my issue is resolved .