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.

TMS320F28377D: TMS320F28377D

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Hello!

I am using  CCS V12 copiling a F28337D project, theres are always some error displayed in the problem windows, all the errors are cla related, below are pasted form the bulild problem windows, this problem confused me for a long time, i guess the series error which noted undefined should be the header files is not linked, since the series parameters are defined  in these header files such as fcl_cla.h,cpu_cla_shared.h,qep_defs.h,fcl_cpu_code.c,f28x_bmsk.h,F2837xD_device.h, but all these header files are TI official library files, besides this i have configured all these files in the include path, and while press "Ctrl‘+ mouse left Key could link to the related files. please someone else could analyze this problem for me, thanks very much. 

In addition to that, i have checked the header file relationship descrined as below:

      fcl_cla_code.cla include fcl_cla.h and cpu_cla_shared.h, two header files.

      fcl_cla.h  include qep_defs.h and F28x_Project.h, and F28x_Project.h include F2837xD_device.h

     cpu_cla_shared.h include f28x_bmsk.h   and qep_defs.hheader files.

Build enviorenment: ccs V12 ,compiler TI v22.6.0.LTS,SDK version :c2000Ware_motorControl_SDK [4.1.0.00], C2000ware [4.4.0.00]

Resource Description Location Path Type
cpu_cla_shared.h #171 expected a declaration line 1 /EV_20221118/libraries/fcl/include C/C++ Problem     //TI official library file,the first line is explanation,guess it is fade error or trigged by any pther error
fcl_cla_code.cla #20 identifier "CLA_QEP_PTR" is undefined line 45 /EV_20221118/sources C/C++ Problem    //TI official library file,the parameter is defined in the header file"fcl_cla.h"
fcl_cla_code.cla #20 identifier "ENC_ALIGNMENT" is undefined line 249 /EV_20221118/sources C/C++ Problem   //TI official library file,the parameter is defined in the header file"qep_defs.h"
fcl_cla_code.cla #20 identifier "ENC_CALIBRATION_DONE" is undefined line 82 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"qep_defs.h"
fcl_cla_code.cla #20 identifier "ENC_WAIT_FOR_INDEX" is undefined line 98 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"qep_defs.h"
fcl_cla_code.cla #20 identifier "GpioDataRegs" is undefined line 77 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the file"fcl_cla_code.cla"
fcl_cla_code.cla #20 identifier "IEI_RISING" is undefined line 129 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"f28x_bmsk.h"
fcl_cla_code.cla #20 identifier "int32" is undefined line 92 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"F2837xD_device.h"
fcl_cla_code.cla #20 identifier "int32" is undefined line 153 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"F2837xD_device.h"
fcl_cla_code.cla #20 identifier "lsw" is undefined line 82 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "lsw" is undefined line 249 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "MOTOR_Constant_Speed" is undefined line 82 /EV_20221118/sources C/C++ Problem     //TI official library file,the parameter is defined in the header file"qep_defs.h"
fcl_cla_code.cla #20 identifier "MOTOR_Constant_Torque" is undefined line 82 /EV_20221118/sources C/C++ Problem     //TI official library file,the parameter is defined in the header file"qep_defs.h"
fcl_cla_code.cla #20 identifier "pangle" is undefined line 95 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "pangle" is undefined line 154 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "pangle" is undefined line 183 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "pi_iq" is undefined line 206 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "pi_iq" is undefined line 223 /EV_20221118/sources C/C++ Problem  //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "Q_cla" is undefined line 223 /EV_20221118/sources C/C++ Problem   //TI official library file,the parameter is defined in the file"fcl_cla_code.cla"
fcl_cla_code.cla #20 identifier "qep1" is undefined line 90 /EV_20221118/sources C/C++ Problem    //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "qep1" is undefined line 151 /EV_20221118/sources C/C++ Problem   //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "qep1" is undefined line 256 /EV_20221118/sources C/C++ Problem    //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "qep1" is undefined line 289 /EV_20221118/sources C/C++ Problem    //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
fcl_cla_code.cla #20 identifier "rg1" is undefined line 154 /EV_20221118/sources C/C++ Problem     //TI official library file,the parameter is defined in the header file"fcl_cpu_code.c" 
cpu_cla_shared.h #7 unrecognized token line 1 /EV_20221118/libraries/fcl/include C/C++ Problem   //TI official library file,the first line is explanation,guess it is fade error or trigged by any pther error
fcl_cla.h #7 unrecognized token line 1 /EV_20221118/libraries/fcl/include C/C++ Problem     //TI official library file,the first line is explanation,guess it is fade error or trigged by any pther error
EV_20221118 gmake: *** [sources/fcl_cla_code.obj] Error 1 C/C++ Problem
EV_20221118 gmake: Target 'all' not remade because of errors. C/C++ Problem

  • Hi Wang,

    What demo project your project based on? Are you using the demo which provided by TI? We strongly suggest you modifying your code based on it.

    Do you #include these header files at the start of the code? Could you please check these two places?:

  • Hi Yale,

    Thanks for your suggestion, yes, i have check the configuration many times and all the header files already setted in the include path, detailed showing as below.

    This project is transfer from my colleague whom has left from our company now. but this is not the reason, my other colleague could build this project and succed but currently he is on businees trip now. 

    These are the TI official header files and they have their own include path in these file. i didn't modify them.

  • Hi Wang,

    It seems like this issue related to development software. Could you please check weather this issue still exist if you using different version of CCS? You can install different version of CCS to your PC at the same time.

    --

    Thanks & Regards

    Yale

  • OK, thanks for your reply, i think out that in my mind sometimes, but i think it is TI's official file system and official compiler envioments, so i dispelled the idea.

    Inaddition to that , there is always an error about the hw_types.h, informed "invalid combination of types specifiers"

    typedef uint16_t uint8_t;
    typedef int16_t int8_t;

    these problem confused me fewer days.

  • Hi Wang,

    If you have other issues, please "ask a new question" with a appropriate title in order to let us identify and follow up easier.

    Thanks!

  • Hi Yale, 

    Seems it is a bug of the CCS, all the probelm occured when i choose "Copy projects into workspace"while import the CCS project, if i didn't choose this option there is no error mentioned as above. I have try this for fewer times, So i think it is a BUG of the CCS.

  • Hi Wang,

    Thanks for your feedback!

    Please let us know if you have other issues.

    --

    Thanks