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: Error 41, migration project

Part Number: TMS320F28379D
Other Parts Discussed in Thread: LAUNCHXL-F28379D, C2000WARE

Tool/software: Code Composer Studio

Hello,

I use CCS7 and a Development Kit :LAUNCHXL-F28379D and i install C2000.

I want re-use a project. This project works. I just have an other  PC with the same window and  i make the installation of C2000 V3 et controlesuite.

When I want build, i have this errors:

>> Compilation failure
subdir_rules.mk:7: recipe for target 'Cpu1.obj' failed
"C:/ti/C2000/C2000Ware_1_00_03_00_Software/driverlib/f2837xd/driverlib/adc.h", line 153: error #41: expected an identifier
"C:/ti/C2000/C2000Ware_1_00_03_00_Software/driverlib/f2837xd/driverlib/adc.h", line 154: error #41: expected an identifier
2 errors detected in the compilation of "../Cpu1.c".
gmake: *** [Cpu1.obj] Error 1
gmake: Target 'all' not remade because of errors.

L151 to L 155 of adc.h:

typedef enum
{
    ADC_RESOLUTION_12BIT = 0x00,    //!< 12-bit conversion resolution
    ADC_RESOLUTION_16BIT = 0x40     //!< 16-bit conversion resolution
} ADC_Resolution;



I don't edit "adc.h" and I don't use other variable with name  "ADC_Resolution". 

I think i have a problems with the library or an other files. I remake the link for the files i see in the project but i can miss one.

I can seed you the project if you want (say how)


Please help me!

Thank you

Best regards,

Jean-Jacques Trognon



  • Hello,

    This is a known issue. There's a conflict between the emun values in driverlib/adc.h and the device_support/f2837xd/common/include/F2837xD_Adc_defines.h files. If you include both files in your project, this issue comes up.

    There is a #ifdef in F2837xD_Adc_defines.h that will allow you to put _DUAL_HEADERS in your predefined symbols to switch the values to a different name (ADC_RESOLUTION_XXBIT -> ADC_BITRESOLUTION_XXBIT). If you do that, you will need to make sure to update your code anywhere you may have used the original #defines (for example, if you used AdcSetMode()).

    Whitney
  • Hi,
    Thank You Whitney, sorry if a basic problem.
    I have a other problems, I don't know if i can ask you in the same post
    error : cannot open source files :

    #1965 cannot open source file "ti/targets/select.h" .ccsproject /Example_CPU1 line 87, external location: C:\ti\xdctools_3_50_04_43_core\packages\xdc\std.h C/C++ Problem

    I don't find "select.h" anywhere.
    This problems come after I add "xdctools_3_50_30_33 " because i had a error about std.h. (the projet was a broke link to xdctools_3_50_30_33 so i download and add)

    Thank you in advance.

    Best regards
  • The only "ti/targets/select.h" file that I know of is in SYS/BIOS (in the packages folder). If you're not using SYS/BIOS or adding that folder to your include path doesn't work, please do start a new post, and we'll get an XDCtools expert to look at.

    Thanks!

    Whitney

  • thank you. i try that