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.

CCS/TMS320F28035: Error using CLAmath in assembly

Part Number: TMS320F28035
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hi, i am try to use CLAmath library V300 in F28035 in Assembly, but when y try to use any function like CLAsin y got the following error: 

Description Resource Path Location Type
[E0300] The following symbols are undefined: ClaTasks.asm /prueba_librerias C/C++ Problem

I have already include the lib folder in CCS (here is the header file).

In the linker file i have:

MEMORY
{
...
L3DPSARAM : origin = 0x009000, length = 0x001000 /* L3 DPSARAM, CSM secure, CLA Prog RAM */
...

PAGE 1 : /* Data Memory */
...
L2DPSARAM : origin = 0x008C00, length = 0x000400 /* L2 DPSARAM, CSM secure, CLA Data RAM 1 */
}


SECTIONS
{
/*** Compiler Required Sections ***/

...

/*** User Defined Sections ***/
codestart : > BEGIN_M0, PAGE = 0 /* Used by file CodeStartBranch.asm */
Cla1Prog : > L3DPSARAM, PAGE = 0 /* Link to CLA Prog RAM */
ClaToCpuMsgRAM : > CLAMSGRAM1, PAGE = 1 /* Link to PF0 - CLA Message RAM */
CpuToClaMsgRAM : > CLAMSGRAM2, PAGE = 1 /* Link to PF0 - CLA Message RAM */

CLAmathTables : > L2DPSARAM, PAGE = 1

...

}

Following the examples in the folder i have

In the shared file i have #include "CLAmath_type0.h"

And in the asm file i have .include   "CLAmathLib_type0.inc"

And i'm trying to use the functions as follows:

...

_CLA1Task1:

MSETFLG    LUF=0,LVF=0,RNDF32=1

MMOVIZ   MR0, #0.1

CLAsin      MR1, MR0

What i'm doing wrong? There are any way to use CLAmath library in F28035 with Assembly code?

Thanks for your help.

  • Hi, me again.

    I have solved the problem.

    1) i had no said that in the inicialization CLA function i wrote Cla1Regs.MMEMCFG.bit.RAM1E = 1;, and thats is necesary for load the data in RAM1.

    2) Reading the documentation i found that the CLAmath macro functions have as input and output a variable, not a register. For example: CLAsin      result, angle

    where "angle" is defined in the header shared file and past to CLA from CpuToClaMsg, and "result" from "ClaToCpuMsg" also defined in the header shared file.

    3) And finally when i'm going to use "CLAmathLib_type0.inc" i need add the file in the proyect, that file is in "C:\ti\controlSUITE\libs\math\CLAmath\v300\lib", in the CCS in the proyect, right click and  Add Files option.

    And thats all. Now its working.

    I hope this information is useful for someone. Bye and thanks.

  • Hi! Thank you for posting the resolution.

    Cheers

    Lori