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.

Building Full Feature EtherCAT application on AM3359

Other Parts Discussed in Thread: SYSBIOS

Hi All,

I am trying to build the Full feature EtherCAT application using am335x_sysbios_ind_sdk_1.1.0.3. I have copied all the files from Slave Stack after applying patch file. But when I try to build the code I get following error.

Description Resource Path Location Type
#99923 Corrupt member header: '../EcatStack/TcHelper.lib' ecat_appl C/C++ Problem

What could be the reason for this/

  • Gayatri,

    As mentioned in - http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_01.01.00.03_User_Guide#Building_Full_Feature_EtherCAT_Application please copy only the .c and .h files to the folder.

    Regards,
    Vinesh

  • Hi Gayatri,


    Can you please provide more information on this error?

    1. Which version of CCS are you using?

    2. Are you able to build the ECAT limited demo application or any other applications included in the SDK examples? (This is to make sure that there is no problem with your CCS settings and all)

    I couldn't find this issue with ISDK 1.1.0.3 application. After doing the patching process, I just copied the .h and .c files to the "...protocols\ethercat_slave\ecat_appl\EcatStack" folder. Imported the project and I am able to build and generate the binaries without any issue.

    In fact I tried with CCS 5.4 and CCS 5.5 and it works well without any project settings modification.

    Thanks

    Nijin

  • HI Nijin ,

    I tried to build the demo ethercat project but it showed error saying Cannot build due to error and there were no errors seen on the problem window.

    So I tried to  build the full feature application using the steps mentioned.  I patched the ecatstack files :

    The output on the console was as follows:

    C:\VSS_APMAT\Software\Windows Patch Utility\patch-2.5.9-7-bin\bin>patch.exe -i C
    :\ti\am335x_sysbios_ind_sdk_1.1.0.3\sdk\protocols\ethercat_slave\ecat_appl\patch
    \TI_ECAT.patch -d C:\VSS_APMAT\src
    patching file bootmode.c
    patching file cia402appl.c
    patching file coeappl.c
    patching file ecat_def.h
    patching file ecatappl.c
    patching file ecatslv.c
    patching file ecatslv.h
    patching file EtherCATSampleLibrary.h
    patching file SampleApplicationInterface.c

    After that I copied all the files to EcatStack folder and built the project which gave me the error regarding the corruption of TcHelper.lib file.

    Then I found a reply in the forum that it is no longer required and can be removed . Please refer the link for details:http://e2e.ti.com/support/arm/sitara_arm/f/791/t/194233.aspx

    So I removed the file and build was successful.

    I am using CCS V.5.5 and SD version 1.1.0.3. 

    Please let me know if I am going wrong since I am a novice in EtherCAT Slave developement.

    Thank you in advance.

     

  • Gayatri,

    Ethercat.org is a great source for EtherCAT development. ETG/Beckhoff also offer developer workshops. I would highly recommend this.

    Regards,

  • Gayatri Powar, yes, this is correct. Actually you need to copy only the source and header (.c and .h) files from the patched stack source code into EcatStack folder.

  • I copied all the files (.c and .h files) from the patched folder. But the cmd promt output mentioned only some files that were patched:

    C:\VSS_APMAT\Software\Windows Patch Utility\patch-2.5.9-7-bin\bin>patch.exe -i C
    :\ti\am335x_sysbios_ind_sdk_1.1.0.3\sdk\protocols\ethercat_slave\ecat_appl\patch
    \TI_ECAT.patch -d C:\VSS_APMAT\src
    patching file bootmode.c
    patching file cia402appl.c
    patching file coeappl.c
    patching file ecat_def.h
    patching file ecatappl.c
    patching file ecatslv.c
    patching file ecatslv.h
    patching file EtherCATSampleLibrary.h
    patching file SampleApplicationInterface.c

    But I have copied all the remaining files as well that are present in the folder.