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: EtherCAT Slave application questions

Other Parts Discussed in Thread: AM4379

Tool/software: Code Composer Studio

Hi,

   I try building full feature EtherCAT Slave Application at AM4379 idk.the example as follows,

Building full feature EtherCAT Slave Application
The EtherCAT example application provided in [INSTALL-DIR]/examples/ethercat_slave folder is a limited development application. To have a full development capability on Sitara processor, it
is necessary to get the EtherCAT Slave Stack Code (SSC) from Beckhoff and build this for Sitara processors. Ethercat full mode example application provides all board specific
implementation sources for EtherCAT and a patch file to modify Beckhoff source files for Sitara processors. This application can be found in [INSTALL-DIR]/protocols/ethercat_slave/ecat_appl.
This folder also includes the configuration xml file to be used for testing and it can be found in[INSTALL-DIR]/protocols/ethercat_slave/ecat_appl/esi folder.
The steps for building full feature EtherCAT application using Beckhoff stack source code are given below.
1. Download EtherCAT stack version 5.11 from ETG website (http://www.ethercat.org/) and extract it to a local folder.
2. Apply ( See Apply instructions below) TI_ECAT.patch file found at [INSTALL-DIR]/third_party/protocols/ethercat_slave/patch on extracted Beckhoff stack code.
3. Copy the patched Beckhoff source files (.c and .h) to [INSTALL-DIR]/protocols/ethercat_slave/ecat_appl/EcatStack
4. Generate CCS project following [Steps_to_generate_Project_files (http://processors.wiki.ti.com/index.php/PRU_ICSS_EtherCAT#Steps_to_generate_Project_files)]
5. Launch CCS and import ethercat_slave_full application project found at the Project create directory (say, [INSTALL-DIR]/protocols/ethercat_slave/projects) to CCS
6. Define macros in ecat_appl\EcatStack\ecat_def.h as required for your application.
1. Ensure that TIESC_HW is set to 1
2. For running default application, set TIESC_APPLICATION to 1 and CiA402_DEVICE to 0
3. For running CiA402 application, set TIESC_APPLICATION to 0 and CiA402_DEVICE to 1.
7. Build the project. This will generate the application binary which can be used to run on Sitara processors.

When i creat ethercat_slave_full_AM437x_arm folder ,and import ccs(7.2) project it,debug it,the error about .c&.h.... 

Best wishes!