SPRADQ4 December   2025 AM2612 , AM2631 , AM2632 , AM2634 , AM263P2 , AM263P4

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Hardware and Software Preparation
  6. 3How to Generate the ETHERCAT Stack Code for AM263P
  7. 4How to Run the AM263 EVM with the ETHERCAT
  8. 5How to Run the TwinCAT
  9. 6Demo
  10. 7References

How to Generate the ETHERCAT Stack Code for AM263P

Read this Readme file in the SDK path: C:\ti\ind_comms_sdk_am263x_09_02_00_13\source\industrial_comms\EtherCAT_slave\beckhoff_stack\stack_sources

There are two ways to generate the ETHERCAT Salve Stack code.

  1. Using the patch file
  2. Using Beckhoff SSC Tool

TI recommends using the first option (Using the patch file) to generate the code, as the user does not need to find and learn the Beckoff SSC Tool.

Follow these steps:

  1. Visit Beckoff Website: EtherCAT
  2. Click Download.
  3. Set the filter as “SSC”; the user will find the SSC (Slave Stack Code) with the 5.13 version.
  4. Download Windows Patch Utility. The user can get this utility from here.
  5. Download Dos2Unix/Unix2Dos-Text file format converters from gnuwin32 sourceforge. The user can get gnuwin32 from here.
  6. Copy this file: unix2dos.exe to this path: C:\TI\ind_comms_sdk_am263x_09_02_00_13\source\industrial_comms\EtherCAT_slave\beckhoff_stack\patch, and issue this command: unix2dos.exe TI_ETHERCAT.patch
  7. Go to: C:\patch-2.5.9-7-bin\bin\. Issue this command on your windows prompt: (The below is very long 1 single cmd.)

    patch.exe

    -i C:\TI\ind_comms_sdk_am263x_09_02_00_13/source/industrial_comms/EtherCAT_slave/beckhoff_stack/patch/TI_ETHERCAT.patch

    -d C:\TI\ind_comms_sdk_am263x_09_02_00_13/source/industrial_comms/EtherCAT_slave/beckhoff_stack/stack_sources/

    When you perform the patch.exe, you can manually assign the file path + file name together. as shown here:

     SSC Patch
                            Example Figure 3-1 SSC Patch Example
  8. Return to the CCS to build the build. This code will be built successfully. See the following image:
     ETHERCAT Code
                            Build-out Figure 3-2 ETHERCAT Code Build-out