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/LAUNCHXL-F28379D: Compilation failure / error #41 / adc.h

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

Tool/software: Code Composer Studio

Goodmorning,

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

I begin a project and I work with window xp for the moment.

When I want build, i have this errors:

>> Compilation failure
subdir_rules.mk:7: recipe for target 'Cpu1.obj' failed
"C:/ti/C2000Ware_1_00_02_00_Software/driverlib/f2837xd/driverlib/adc.h", line 153: error #41: expected an identifier
"C:/ti/C2000Ware_1_00_02_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".

Please help me!

Thank you

Best regards,

Jean-Jacques Trognon

 

 

  • This information alone does not tell us the root cause of the error. There must be something else in another part of your code that is triggering the error. 

    Any specific reason you are using CCSv6 and not v7? Please upgrade to CCSv7 if that is a feasible option.

    I would suggest first building an example project from C2000Ware that uses this adc.h file. That should build without errors and you can have that as a baseline. Then take a closer look at your code at what might be triggering the error. If you are still unable to isolate it, we would need to see your project so we can reproduce the error. 

  • I use CCs6 because i don't win to install CCS7 on Window Xp (It's a old PC but I try to change for a window7.).

    I don't write code, I just try to build a c2000 project. "adc" look like my wish project (adc is in exemples of C2000).  I think, i don't set well the "include".

    I will try with anthor project on C2000.

    Thank you for you answer!

    Best regards.

  • Yes, please do try another example and let us know if it also generates errors. In the meantime, could you let us know which adc example project you tried earlier? The exact path to it within C2000Ware would be helpful.
  • the path is :
    C:\ti\C2000Ware_1_00_02_00_software\driverlib\f2837xd\driverlib
  • OK, that is the project that rebuilds the driverlib library. I just imported that project into both CCS 7.4 and CCS 6.2 and both versions built without errors.

    I would suggest that you try importing and building one of the examples under C:\ti\C2000Ware_1_00_02_00_Software\device_support\f2837xd\examples\cpu1
  • I try on my new PC (win10 + CCS7), it's OK. I think the problem was my memory on Hard disc.
    thank you very much !