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/TMS320F28075: USB exsample compilor error

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

If you compile using the usb sample from C2000ware3.01 as is, an error will occur at the following location. What's wrong?
Error message:
>> Compilation failure
subdir_rules.mk:9: recipe for target'usb_ex1_serial_structs.obj' failed"C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include/usblib.h", line 127: fatal error #35: #error directive: Unrecognized COMPILER!


#if defined(__TI_ARM__) || \
defined(codered) || \
defined(__GNUC__) || \
defined(__CC_ARM) || \
defined(__ARMCC_VERSION) || \
defined(sourcerygxx)
#define PACKED __attribute__ ((packed))
#elif defined(__ICCARM__)
#define PACKED
#elif defined(ccs_c2k)
#define PACKED
#else
#error Unrecognized COMPILER!
#endif
  • Hi,

    Can you provide more details such as the CCS version, compiler version and which USB example you are trying to compile?

    Best Regards

    Siddharth

  • CCS version: Version: 10.0.0.00010

    Eclipse C/C++ Development Tools
    Version: 9.10.0.201912051559

    USB example:C:\ti\c2000\C2000Ware_3_01_00_00\driverlib\f2807x\examples\cpu1\usb\usb_ex1_dev_serial.c

  • ERORR MESSAGE:

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'usb_ex1_dev_serial.obj' failed
    "C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include/usblib.h", line 127: fatal error #35: #error directive: Unrecognized COMPILER!
    1 catastrophic error detected in the compilation of "../usb_ex1_dev_serial.c".
    Compilation terminated.
    gmake: *** [usb_ex1_dev_serial.obj] Error 1
    Building file: "../usb_hal.c"
    Invoking: C2000 Compiler

  • Hi ,

    Can you share the entire compile log? 

    Best Regards

    Siddharth

  • **** Build of configuration Debug for project gpio_test ****
    "C:\\ti\\ccs1000\\ccs\\utils\\bin\\gmake" -k -j 6 all -O
     
    Building file: "../cputimersub.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="cputimersub.d_raw"  "../cputimersub.c"
    Finished building: "../cputimersub.c"
     
    Building file: "../can_loopback_interrupts.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="can_loopback_interrupts.d_raw"  "../can_loopback_interrupts.c"
    Finished building: "../can_loopback_interrupts.c"
     
    Building file: "../can.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="can.d_raw"  "../can.c"
    Finished building: "../can.c"
     
    Building file: "../adc_soc_software.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="adc_soc_software.d_raw"  "../adc_soc_software.c"
    Finished building: "../adc_soc_software.c"
     
    Building file: "../cputimers.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="cputimers.d_raw"  "../cputimers.c"
    "../cputimers.c", line 225: warning #225-D: function "task10_3ms" declared implicitly
    "../cputimers.c", line 159 (col. 28): advice #2615-D: (Performance) Use --fp_mode=relaxed to enable TMU hardware support for FP division.
    Finished building: "../cputimers.c"
     
    Building file: "../device.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="device.d_raw"  "../device.c"
    Finished building: "../device.c"
     
    Building file: "../i2c.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="i2c.d_raw"  "../i2c.c"
    Finished building: "../i2c.c"
     
    Building file: "../GlobalVariableDefs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="GlobalVariableDefs.d_raw"  "../GlobalVariableDefs.c"
    Finished building: "../GlobalVariableDefs.c"
     
    Building file: "../epwm_updown_aq.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="epwm_updown_aq.d_raw"  "../epwm_updown_aq.c"
    Finished building: "../epwm_updown_aq.c"
     
    Building file: "../i2c_eeprom.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="i2c_eeprom.d_raw"  "../i2c_eeprom.c"
    Finished building: "../i2c_eeprom.c"
     
    Building file: "../gpio1.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="gpio1.d_raw"  "../gpio1.c"
    Finished building: "../gpio1.c"
     
    Building file: "../main.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="main.d_raw"  "../main.c"
     
    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'main.obj' failed
    "C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include/usblib.h", line 127: fatal error #35: #error directive: Unrecognized COMPILER!
    1 catastrophic error detected in the compilation of "../main.c".
    Compilation terminated.
    gmake: *** [main.obj] Error 1
    Building file: "../task.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="task.d_raw"  "../task.c"
     
    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'task.obj' failed
    Building file: "../interrupt.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="interrupt.d_raw"  "../interrupt.c"
    "C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include/usblib.h", line 127: fatal error #35: #error directive: Unrecognized COMPILER!
    1 catastrophic error detected in the compilation of "../task.c".
    Compilation terminated.
    gmake: *** [task.obj] Error 1
    Finished building: "../interrupt.c"
     
    Building file: "../sci.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="sci.d_raw"  "../sci.c"
    Finished building: "../sci.c"
     
    Building file: "../usb_ex1_dev_serial.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="usb_ex1_dev_serial.d_raw"  "../usb_ex1_dev_serial.c"
     
    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'usb_ex1_dev_serial.obj' failed
    "C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include/usblib.h", line 127: fatal error #35: #error directive: Unrecognized COMPILER!
    1 catastrophic error detected in the compilation of "../usb_ex1_dev_serial.c".
    Compilation terminated.
    gmake: *** [usb_ex1_dev_serial.obj] Error 1
    Building file: "../sci_loopback_interrupts.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="sci_loopback_interrupts.d_raw"  "../sci_loopback_interrupts.c"
    Finished building: "../sci_loopback_interrupts.c"
     
    Building file: "../usb_ex1_serial_structs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="usb_ex1_serial_structs.d_raw"  "../usb_ex1_serial_structs.c"
     
    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'usb_ex1_serial_structs.obj' failed
    "C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include/usblib.h", line 127: fatal error #35: #error directive: Unrecognized COMPILER!
    1 catastrophic error detected in the compilation of "../usb_ex1_serial_structs.c".
    Compilation terminated.
    gmake: *** [usb_ex1_serial_structs.obj] Error 1
    Building file: "../sysctl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="sysctl.d_raw"  "../sysctl.c"
    "../sysctl.c", line 633 (col. 57): advice #2615-D: (Performance) Use --fp_mode=relaxed to enable TMU hardware support for FP division.
    Finished building: "../sysctl.c"
     
    Building file: "../usb_hal.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/headers/source" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2807x/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2807x/common/include" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="usb_hal.d_raw"  "../usb_hal.c"
     
    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'usb_hal.obj' failed
    "C:/ti/c2000/C2000Ware_3_01_00_00/libraries/communications/usb/f2807x/include/usblib.h", line 127: fatal error #35: #error directive: Unrecognized COMPILER!
    1 catastrophic error detected in the compilation of "../usb_hal.c".
    Compilation terminated.
    gmake: *** [usb_hal.obj] Error 1
    gmake: Target 'all' not remade because of errors.
    **** Build Finished ****
  • Hi,

    Did you change any compiler options ? Looks like the pre-defined symbols are not available in your CCS project. Can you check if these pre-defined symbols "ccs_c2k"  is available in your project configuration?

  • I'll check it, but I don't remember changing the compile option .
  • Hi,

    Did you check on this ? Are you still facing this issue?

    Best Regards

    Siddharth

  • Hi,
    Thank you for your help.
    Still unsolved.
    Can you check it there?
  • Hi

    The cause of the compilation failure is due to usbib.h.
    This header file refers to "C:\ti\c2000\C2000Ware_3_02_00_00\libraries\communications\usb\f2807x\include".
    It seems that the define of f2807 is not defined?

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'usb_ex1_dev_serial.obj' failed
    "C:/ti/c2000/C2000Ware_3_02_00_00/libraries/communications/usb/f2807x/include/usblib.h", line 130: fatal error #35: #error directive: Unrecognized COMPILER!
    1 catastrophic error detected in the compilation of "../usb_ex1_serial_structs.c".
    Compilation terminated.

  • Hi,

    Can you share the CCS project? Also, ca you check if the pre-defined symbol "ccs_c2k"  is available in your project configuration?

    Best Regards

    Siddharth