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.

AM2434: EtherCAT EVAL version expired related

Part Number: AM2434

Tool/software:

Hi all,

I'm using EtherCAT slave simple demo where the session got expired after 1 hour.

So, I followed the readme file given in the location C:\ti\ind_comms_sdk_am243x_09_02_00_15\source\industrial_comms\ethercat_slave\stack\patch\SlaveFiles\src

While doing step 3 I got error in the files of EtherCAT slave sample code version 5.13 from ETG website.

C:\ti\ind_comms_sdk_am243x_09_02_00_15\source\industrial_comms\ethercat_slave\stack\patch>gmake -s -f makefile.custom-ssc ssc
makefile.am243x.r5f.ti-arm-clang:31: *** missing separator.  Stop.

C:\ti\ind_comms_sdk_am243x_09_02_00_15\source\industrial_comms\ethercat_slave\stack\patch>gmake -s -f makefile.custom-ssc ssc
building patched lib/ethercat_slave_bkhf_ssc.am243x.r5f.ti-arm-clang.release.lib
 Cleaning: ethercat_slave_bkhf_ssc.am243x.r5f.ti-arm-clang.release.lib ...
 .
unix2dos: Skipping SlaveFiles/src/., not a regular file.
unix2dos: Skipping SlaveFiles/src/.., not a regular file.
unix2dos: converting file SlaveFiles/src/aoeappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/aoeappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/applInterface.h to DOS format...
unix2dos: converting file SlaveFiles/src/bootloaderappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/bootloaderappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/bootmode.c to DOS format...
unix2dos: converting file SlaveFiles/src/bootmode.h to DOS format...
unix2dos: converting file SlaveFiles/src/cia402appl.c to DOS format...
unix2dos: converting file SlaveFiles/src/cia402appl.h to DOS format...
unix2dos: converting file SlaveFiles/src/coeappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/coeappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/diag.c to DOS format...
unix2dos: converting file SlaveFiles/src/diag.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecataoe.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecataoe.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatcoe.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatcoe.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecateoe.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecateoe.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatfoe.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatfoe.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatslv.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatslv.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecatsoe.c to DOS format...
unix2dos: converting file SlaveFiles/src/ecatsoe.h to DOS format...
unix2dos: converting file SlaveFiles/src/ecat_def.h to DOS format...
unix2dos: converting file SlaveFiles/src/el9800appl.c to DOS format...
unix2dos: converting file SlaveFiles/src/el9800appl.h to DOS format...
unix2dos: converting file SlaveFiles/src/el9800hw.c to DOS format...
unix2dos: converting file SlaveFiles/src/el9800hw.h to DOS format...
unix2dos: converting file SlaveFiles/src/emcy.c to DOS format...
unix2dos: converting file SlaveFiles/src/emcy.h to DOS format...
unix2dos: converting file SlaveFiles/src/eoeappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/eoeappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/esc.h to DOS format...
unix2dos: converting file SlaveFiles/src/EtherCATSampleLibrary.h to DOS format...
unix2dos: converting file SlaveFiles/src/fc1100hw.c to DOS format...
unix2dos: converting file SlaveFiles/src/fc1100hw.h to DOS format...
unix2dos: Binary symbol 0x00 found at line 1
unix2dos: Skipping binary file SlaveFiles/src/fc11xxAccess.dll
unix2dos: converting file SlaveFiles/src/fc11xxAccess.h to DOS format...
unix2dos: Binary symbol 0x00 found at line 3
unix2dos: Skipping binary file SlaveFiles/src/fc11xxAccess.lib
unix2dos: converting file SlaveFiles/src/foeappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/foeappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/mailbox.c to DOS format...
unix2dos: converting file SlaveFiles/src/mailbox.h to DOS format...
unix2dos: converting file SlaveFiles/src/mcihw.c to DOS format...
unix2dos: converting file SlaveFiles/src/mcihw.h to DOS format...
unix2dos: converting file SlaveFiles/src/objdef.c to DOS format...
unix2dos: converting file SlaveFiles/src/objdef.h to DOS format...
unix2dos: converting file SlaveFiles/src/readme.md to DOS format...
unix2dos: converting file SlaveFiles/src/sampleappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/sampleappl.h to DOS format...
unix2dos: converting file SlaveFiles/src/SampleApplicationInterface.c to DOS format...
unix2dos: converting file SlaveFiles/src/SampleApplicationInterface.h to DOS format...
unix2dos: converting file SlaveFiles/src/sdoserv.c to DOS format...
unix2dos: converting file SlaveFiles/src/sdoserv.h to DOS format...
unix2dos: converting file SlaveFiles/src/testappl.c to DOS format...
unix2dos: converting file SlaveFiles/src/testappl.h to DOS format...
unix2dos: converting file bkhf_ssc_kunbus_ssc.patch to DOS format...
patched original SSC sources
 .
 Compiling: ethercat_slave_bkhf_ssc.am243x.r5f.ti-arm-clang.release.lib: src/ssc.c
In file included from src/ssc.c:20:
In file included from C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/inc\ssc.h:33:
In file included from C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src\objdef.h:40:
In file included from C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src/sdoserv.h:38:
In file included from C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src/ecatcoe.h:30:
In file included from C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src/mailbox.h:34:
C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src/ecat_def.h:1167:29: error:
      invalid token at start of a preprocessor expression
#if OBJ_STRUCT_PACKED_START &&OBJ_DWORD_ALIGN
                            ^
C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src/ecat_def.h:1171:29: error:
      invalid token at start of a preprocessor expression
#if OBJ_STRUCT_PACKED_START &&OBJ_WORD_ALIGN
                            ^
In file included from src/ssc.c:24:
In file included from C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src\applInterface.h:44:
In file included from C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src/ecatslv.h:49:
C:/ti/ind_comms_sdk_am243x_09_02_00_15/source/industrial_comms/ethercat_slave/stack/patch/SlaveFiles/src/el9800hw.h:43:10: fatal error:
      'xc.h' file not found
#include <xc.h>
         ^~~~~~
3 errors generated.
gmake: *** [makefile.am243x.r5f.ti-arm-clang:132: ssc.obj] Error 1

Please guide me further.

Regards,
D.Jenita.

  • Hello Jenita,

    We were able to reproduce the issue you have observed. We will look into the patch file.
    In the meantime, you can rebuild the libs by skipping the patching files as shown below. This should generate the libs without time limitations.

    patching file SlaveFiles/src/EtherCATSampleLibrary.h
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    2 out of 2 hunks ignored -- saving rejects to file SlaveFiles/src/EtherCATSampleLibrary.h.rej
    patching file SlaveFiles/src/aoeappl.c
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file SlaveFiles/src/aoeappl.c.rej
    patching file SlaveFiles/src/bootloaderappl.c
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file SlaveFiles/src/bootloaderappl.c.rej
    patching file SlaveFiles/src/bootmode.c
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    3 out of 3 hunks ignored -- saving rejects to file SlaveFiles/src/bootmode.c.rej
    patching file SlaveFiles/src/coeappl.c
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    16 out of 16 hunks ignored -- saving rejects to file SlaveFiles/src/coeappl.c.rej
    patching file SlaveFiles/src/ecat_def.h
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    17 out of 17 hunks ignored -- saving rejects to file SlaveFiles/src/ecat_def.h.rej
    patching file SlaveFiles/src/ecatappl.c
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    9 out of 9 hunks ignored -- saving rejects to file SlaveFiles/src/ecatappl.c.rej
    patching file SlaveFiles/src/ecatappl.h
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    5 out of 5 hunks ignored -- saving rejects to file SlaveFiles/src/ecatappl.h.rej
    patching file SlaveFiles/src/ecatfoe.h
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file SlaveFiles/src/ecatfoe.h.rej
    patching file SlaveFiles/src/ecatslv.c
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    3 out of 3 hunks ignored -- saving rejects to file SlaveFiles/src/ecatslv.c.rej
    patching file SlaveFiles/src/ecatslv.h
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    2 out of 2 hunks ignored -- saving rejects to file SlaveFiles/src/ecatslv.h.rej
    patching file SlaveFiles/src/el9800appl.h
    Reversed (or previously applied) patch detected!  Assume -R? [n]

    Kind Regards,

  • Harsha:

    Was not the intent of the Beckhoff shared library object for the EtherCAT slave was to officially acquire the non-timed out shared library timeout from the ETG? I recall a discussion last year with    (18) Ashwani Goel's Profile - Ashwani Goel - TI E2E support forums   on that, specifically (+) PROCESSOR-SDK-AM64X: EtherCAT SubDevice: HWALLicense task stops, EtherCAT subdevice stops working - Processors forum - Processors - TI E2E support forums    Beckhoff/ETG was wanting to track all non-timed out shared object library users. cc:  (+) Thomas Leyrer's Profile - Thomas Leyrer - TI E2E support forums (TI Germany) 

    later

    Jim

  • Hello Jim Mrowca,

    Yes. The customers should officially acquire the EtherCAT SubDevice Stack Code/ Beckhoff SSC source files from the EtherCAT Technology Group (ETG) and they should have the ETG membership to download these source files from ETG website.

    The library provided in the Industrial Communications SDK - ethercat_slave_bkhf_ssc.amxxxx_evm.r5f.ti-arm-clang.release.lib is time limited to 1 hour. Customers should rebuild this library without any time limitations by acquiring the source files from the ETG and this is mentioned as the first step to be followed in rebuilding the library.



    In this case, the customer has already acquired the source files (version 5.13) from ETG and tried to recompile the library by following the steps mentioned in the SDK to regenerate the libs without any time limitations.

    Kind Regards,

  • Thanks Harsha; at least that recompile should not involve TI SDK issues hopefully.

    I think the TI Industrial Communications SDK should issue an [FAQ] about the needing the ETG's EtherCAT shared library object in e2e so that it would be easy to find.

    Jim

  • Hello Jim,

    Thank you for the feedback. We will update the documentation FAQ accordingly.

    Kind Regards,