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.

Compiler/TMS320F28377S: CCS cannot compile .cla file

Part Number: TMS320F28377S

Tool/software: TI C/C++ Compiler

Dear,

Hi, I'm trying to use CLA for simple calculation(normalisation, etc) with ADC results, and this is the first time that I use CLA.

Initialisation, configuration of CLA RAM in main seems fine, but I encounter a problem when I add '.cla' file on my source code.

The error statements are following:

#35 #error directive: "Header file <stdio.h> not supported by CLA compiler"

#452 the type "long long" is nonstandard.

.cla file contains cla tasks interrupt functions which cla are using.

I added 'CLA_C=1' on C2000 Linker -> Advanced Options -> Command File Preprocessing -> Pre-define preprocessor macro.

I set cla1 as 'specify CLA support'.

  • I doubt there are standard libraries for stdio.h for the CLA since there really aren't any I/O peripherals for the CLA.  What functions in stdio do you need?

    Also regarding the long long support, the CLA does not support 64 bit data types.  On the CLA an int is 32-bits not 16-bits like the CPU.

  • Hi,

    long long is not supported by CLA compiler but you can use 64-bit structure types to read/write to 64-bit types.
    CLA C compiler can read and write to 64-bit types but can’t do anything else to it.

    For using Uint64 & int64, include F2837xD_Cla_typedefs.h in your shared.h file.
    Also refer this link: e2e.ti.com/.../328781

    Thanks
    Vasudha
  • Hi Vasudha,

    Thanks for your suggestions.

    I deleted all of header files which contains long long type, and altered math.h to CLAmath.h.

    Afterwards, some RAM and CAN register errors were occurred.

    Anyway, code works fine without any errors now.

    Thanks for helping me again.

    Regards,

    Polar

  • I fixed errors. Thanks for helping me.