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/TMS320F28377D: How can I fix this error while building the project

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi all,

I am getting the following error while running the code. How can I fix this problem?

Regards

M

**** Build of configuration CPU1_RAM for project Phase shifted PWM Signals ****

"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k all

Building file: "../main_new.c"
Invoking: C2000 Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/include" --include_path="C:/ti/C2000Ware_1_00_03_00_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_1_00_03_00_Software/device_support/f2837xd/common/include" --advice:performance=all --define=CPU1 -g --diag_suppress=10063 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main_new.d_raw" "../main_new.c"

>> Compilation failure
subdir_rules.mk:86: recipe for target 'main_new.obj' failed
"C:\ti\C2000Ware_1_00_03_00_Software\device_support\f2837xd\common\include\driverlib.h", line 45: fatal error #1965: cannot open source file "inc/hw_memmap.h"
1 catastrophic error detected in the compilation of "../main_new.c".
Compilation terminated.
gmake: *** [main_new.obj] Error 1
Building file: "../pwm_new.c"
Invoking: C2000 Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/include" --include_path="C:/ti/C2000Ware_1_00_03_00_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_1_00_03_00_Software/device_support/f2837xd/common/include" --advice:performance=all --define=CPU1 -g --diag_suppress=10063 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="pwm_new.d_raw" "../pwm_new.c"

>> Compilation failure
subdir_rules.mk:93: recipe for target 'pwm_new.obj' failed
"C:\ti\C2000Ware_1_00_03_00_Software\device_support\f2837xd\common\include\driverlib.h", line 45: fatal error #1965: cannot open source file "inc/hw_memmap.h"
1 catastrophic error detected in the compilation of "../pwm_new.c".
Compilation terminated.
gmake: *** [pwm_new.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hi,

    You are definitely missing an include path, which prevents the compiler from finding the file inc/hw_memmap.h.

    Search the C2000Ware path to find the path that contains the subdirectory and file shown above. One of its example projects may give you hints on how to set up this path.

    Regards,
    Rafael
  • Hi Rafael,

    Thanks for your reply. When I include the driverlib, the problem  finding the file inc/hw_memmap.h.  is resolved but am getting a new error like this

    Compilation failure

    subdir_rules.mk:93: recipe for target 'pwm_new.obj' failed

    "C:/ti/C2000Ware_1_00_04_00_Software/driverlib/f2837xd/driverlib/adc.h", line 153: error #41: expected an identifier

    "C:/ti/C2000Ware_1_00_04_00_Software/driverlib/f2837xd/driverlib/adc.h", line 154: error #41: expected an identifier

    2 errors detected in the compilation of "../pwm_new.c".

    gmake: *** [pwm_new.obj] Error 1

    gmake: Target 'all' not remade because of errors.

    Best regards,

    M

  • Hi,

    Sorry about the delay; I missed your reply. Are you still having issues with this project?

    I looked at the lines 153 and 154 of the file where the error is reported and it simply shows two elements of an enumeration variable.  

    Unless you re-defined these symbols to another variable, I don't really see how this could be throwing this error, unless the file itself got corrupt. Can you compare the contents above with your file and see if there are any problems?

    Regards,

    Rafael

  • Hi Rafael,

    I managed to resolve that issue adding _DUAL_HEADERS to the list of predefined symbol. There was a similar type of questions in the forum I found later.

    Thank you very much for your cooperation.

    Regards
    M