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/TMS320F28379D: #41 expected an identifier

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hello,

Please find below image for the error log. I am not sure why i am encountering with this error.

Please find the console output log below

** Build of configuration Debug for project IPC-cpu2 ****

"E:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "../main.c"
Invoking: C2000 Compiler
"E:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="E:/modbus_rtu/IPC-cpu2" --include_path="C:/ti/c2000/C2000Ware_2_00_00_02/device_support/f2837xd/headers/include" --include_path="C:/ti/c2000/C2000Ware_2_00_00_02/driverlib/f2837xd/driverlib" --include_path="E:/ti/c2000/C2000Ware_1_00_06_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_2_00_00_02/device_support/f2837xd/common/deprecated/utils" --include_path="E:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.4.LTS/include" --advice:performance=all --define=CPU2 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"E:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2837xd\common\include\F2837xD_GlobalPrototypes.h", line 127: error #41: expected an identifier
"E:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2837xd\common\include\F2837xD_GlobalPrototypes.h", line 127: error #80: expected a type specifier
"E:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2837xd\common\include\F2837xD_GlobalPrototypes.h", line 127: error #91: function returning function is not allowed
3 errors detected in the compilation of "../main.c".
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Thank you

Best Regards,

Sindhu H

  • hi Sindhu ,

    Are you using an example of the C2000ware as a reference ?

    Can you use only 1 version of c2000ware like 2_00_00_02 and not a mix?

    Does the IDLE() function resolve to IDLE macro in cpu.h rather than a file in common/source/sysctl.c?

    The issue could be that since we are including both driverlib and common( bitfields ) into the same project the IDLE function is resolving to a MACRO in  cpu.h rather than the sysctl file.

    Please use the term _DUAL_HEADERS in the predefined symbols in project properties since you are using a project with both driverlib and bitfield styles of source files. This would redefine the DUAL macro for you in the cpu.h so that the IDLE() API is resolved to the right file.

    The source files in the latest c2000ware should take care of this redefinition for you.

    Regards.

  • Thank you Meghana for the solution. I will try it and return back to you if i still get the same error.

    Best Regards,
    Sindhu H
  • Thank you Meghana. The error is now resolved. Thanks a lot.

    Best Regards,
    Sindhu H