

Building EtherCAT Application using ETG Code Base and TI Patch file
------------------------------------------------------------------------------------------
    Downlaod EtherCAT stack (See release notes for version information) from ETG website and extract it to a local folder.
    Apply ( See Apply instructions below) TI_ECAT.patch file found at $(IA_SDK_HOME)\Protocols\ethercat_slave\ecat_appl\patch on extracted ETG stack code.
    Copy the entire files (.c and .h) to $(IA_SDK_HOME)\Protocols\ethercat_slave\ecat_appl\EcatStack
    Launch CCS and import ecat_appl project found at $(IA_SDK_HOME)\Protocols\ethercat_slave\ecat_appl to CCS
    Build the project. This will generate the application binary which can be used to run on AM335x.


Applying a Patch file
------------------------------------------------------------------------------------------
    Download Windows Patch Utility from http://gnuwin32.sourceforge.net/downlinks/patch-bin-zip.php . ( Note that this is not a TI tool - see http://savannah.gnu.org/projects/patch/ for more details and licensing information))
    Extract the zip file to the Windows PC. Patch file utility(Patch.exe) can be found in bin folder.
    Launch DOS Command prompt ( Start->Run->cmd).
    CD to bin folder.
    Execute patch.exe as given below 

                 patch.exe -i PATH_FILE -d SOURCE_DIR

                 where PATCH_FILE is name of the patch file with full path and SOURCE_DIR is Directory with full path where source files are placed 