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/AM5728: EtherCAT Master build error

Part Number: AM5728

Tool/software: Code Composer Studio

Hello,

While am building the EcMasterDemo in CCS6.1.3 am getting the following error.


expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef' EcMasterDemo line 28, external location: c:\ti\gcc-arm-none-eabi-4_9-2015q3\arm-none-eabi\include\machine\_default_types.h C/C++ Problem

Even observing carefully am not knowing  where the error is?Can anyone help me ?

Thanks and Regards,

Swarna.

  • Swarna,

    This include file is part of the GCC compiler suite, therefore I wonder if there are any conflicting options that may be causing this, or perhaps even a #define __INT8_TYPE__ somewhere else in the code that is causing the error.

    Can you clean the project, rebuild and save the console build output to a file and attach to this forum? Perhaps this may help uncover any possible problems.

    Regarding the example code, is this part of the Processor SDK?

    Regards,
    Rafael
  • Hi Desouza,

    The code is not the part of the SDK , its a sample code from Acontis site,

    Here's the attachment of the log.

    ecmasterdemo console log.txt

    Thanks and Regards,

    Swarna.

  • Swarna,

    Please apologize for the delay; it took me some time to get the example code from Acontis.

    Unfortunately I couldn't reproduce the issue you are seeing; I was able to build the code but I needed to change the file EcMaster.cfg and move the CSL driver inclusion above the UART and I2C. Other than that the code built just fine.

    This is something you reported in the thread below:
    e2e.ti.com/.../603109

    Hope this helps,
    Rafael