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/TMS320F28377S: CCS cannot compile .cla file

Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

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'.

Is there any solution for this problem? If you need more information, I'll reply to this post

  • Hi,

    Please see the CLA examples in C2000Ware.

    I believe stdio.h is not supported on CLA. However, stdint.h is.

    Also, I believe CLA_C should simply be defined and not defined to 1.

    sal
  • Hi Sal,

    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.

    Also, 'CLA_C=1' seems fine; is there any latent issue if I define on macro like this?

    Thanks for helping me again.



    Regards,

    Polar
  • It may work. I have not tested both macros. If it is working as expected, then I would not worry about it.

    sal