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/AM4379: EtherCAT Slave Cusomistaion

Part Number: AM4379

Tool/software: Code Composer Studio

Hi,

  I am customizing etherCaT slave ,for that I have to include pthread.h file. But Compilation is not successfull. In gcc when we include thread gcc main.c -lpthread -o main.out .  How to do this in ccs

Regards,

Vishnu

  • Vishnu,

    Let me make sure I understand your question. Are you asking where in the CCS GUI the pthread library needs to be added for it to be linked into the executable?

  • AartiG,

    For customizing ethercat slave I have included pthread.h file in c code. But while building it showing error. How to link pthread.h file to my code.

    Regards,

    Vishnu

  • Vishnu,

    The screenshot only shows warnings - are these what you were referring to as errors?

    I don't have as much knowledge about the GCC compiler as the TI compiler, but in general terms the "implicit declaration" warnings mean that the source file is calling a function for which the compiler has not seen a declaration ("prototype") yet. Make sure that pthread.h (or another header file) has the prototype for these functions and the header file is #included in the C source file.

    You can also get a lot more information on the internet about these warnings and what they mean in a general sense.