Hi Guys,
CCS v 6.2(compiler version = TI v15.12.3.LTS)
TMX320F28075 Control Card
control Suite v 3.4.1
I am trying to use the CLAsin function inside CLa Task 1. I am using CLAMATH LIB v4_01_00 and I have read the user's guide. I have applied the following settings:
1] Linked Resources -> added a variable "CLAMATH_ROOT" and pointed it to the version folder of CLA Math library in controlSUITE
2] c2000 Compiler -> Include Options -> in the "--include_path, -l" box added "${CLAMATH_ROOT}/include"
3] c2000 Linker -> File Search Path -> in the "--search_path, -i" box added "${CLAMATH_ROOT}/lib"#
4] c2000 Linker -> File Search Path -> in the "--library, -l" box added cla1_math_library_fpu32.lib
My Cla Task Code is:
extern float fAngle;
extern float fResult;
__interrupt void Cla1Task1 ( void )
{
#if (CLA_DEBUG==1)
__mdebugstop();
#endif
fResult = CLAsin(fAngle);
}
In the main file :
#pragma DATA_SECTION(fAngle,"CpuToCla1MsgRAM") float fAngle; #pragma DATA_SECTION(fResult,"Cla1ToCpuMsgRAM") float fResult;
When I build, I get the following warning:
<Linking>
warning #10247-D: creating output section "CLA1mathTables" without a SECTIONS specification
And after running the project, when I set the value of fAngle = 1.571 (90 degree), the fResult = 0 instead of 1.
Please let me know what am I doing wrong?