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.

TMDSICE3359: Twincat etherCAT application AM3359

Part Number: TMDSICE3359

Hello,

I try to perform EtherCAT demo with TMDXICA3359 (AM335x Dev Board Rev 1.0A ). I think it is first version of TMDSICE3359. I did following steps and receive an error. Is there any solution offer?

1. Download the TwinCAT v2.11 (tc211x64Engineering_R3_2.11.2303) and install it. 

2. Then I also download TC31-XAR-Setup.3.1.4022.29 and install it. 

3. Open twincat 2.11 system manager. (I could not find system manager of 3.1 version although I also installed the twincat 3.1 and I selected the 3.1 as active version from switcher tool)

4.Connect board J2 ethernet port connector to PC ethernet port with a such a CAT5 cable and power up the board.

5. In system manager > Options > Show real time ethernet compatible devices. I can see my Ethernet-Twincat -Intel PCI Ethernet Adapter (Gigabit) under the Installed and ready to use device title. I think now my ethernet adapter can see the board, right?

6. Goto I/O - Configuration > I/O Devices - right click. But scan devices button unfortunately are passive. For this reason I click the Append Device button. Then select EtherCAT. Device1 (EtherCAT) will be added to I/O devices. 

7.Rigth click Device1 (EtherCAT). And then Scan Boxes. But an error received such as Service is not supported by server. So a dialog box does not appear as 'Scan for boxes'. Also 'Active Free Run' diaglog box does not appear.  Therefore, TI Boxn(ti-esc) (full application) or Box n(TIESC-00m) (demo application) does not come under the Device 1 (EtherCAT) automatically. 

My OS is Windows 10. Ethernet Adapter is Intel® Ethernet Connection I219-LM which is not seen on the Beckhoff supported ethernet adapter list. But, on the step 5, I was able to see the Ethernet-Twincat -Intel PCI Ethernet Adapter (Gigabit) under the Installed and ready to use device title. I think Beckhoff is supported some discontinued Ethernet Adapter. 

Thank you.

  • Hi Donner, some questions:

    EtherCAT slave:

    - which PRU-ICSS Ethernet/IP version are you trying? just for your information you can get latest version from here

    - Is EtherCAT application running? (Output LEDs, in a specific patron, will light  on ICEv2 board, when slave is ready to communicate)

    TwinCAT:

    - Did you copy [INSTALL-DIR]/protocols/ethercat_slave/ecat_appl/esi/TI_ESC.xml  inside  <Drive>:\TwinCAT\3.1\Config\Io\EtherCAT folder? For TwinCAT2 I don't recall the exact location TI's XML file needs to be..

    PC:

    - Shouldn't be a problem, but if you have any antivirus or firewall, maybe worthy to turn it off. At least for a quick test.

    - Sometimes I need to disable/enable my PC Ethernet connection in order to get TwinCAT to scan slaves. Worthy to try. Or alternatively a fresh start in your PC

    Hope this helps, thank you,

    Paula

  • Dear Paula,

    Thank you for your advices. I am able to control output LEDs on the demo board. I have upgraded to VS2017 and Twincat 3.1.

    In order to make clear my mind, I have put a few questions below. It would be great if you answer.
    *I thought that I performed EtherCAT Master example. But slave? Am I able to perform EtherCAT slave example on this demo board?
    *I wonder that EtherCAT Master and Slave difference in terms of hardware & software. Which layers are different between an EtherCAT Master and Slave? (OSI layers). EtherCAT' s Master and Slave have the same physical layer that is Ethernet. But MAC layer is different each other? I think that I cannot use C2000 series MCU as an EtherCAT Master, right? C2000 could be modified as EtherCAT Slave, by adding an EtherCAT slave controller IC. But Sitara can be used as both EtherCAT Master and Slave by changing only SW configuration, right?

    Thank you so much.
  • Hi Doner, let me try to clarify. EtherCAT slave requires specific Ethernet hardware (EtherCAT MAC) in order to support EtherCAT on-the-fly frames processing, and pass very quickly the frame to the other port (For your reference, this blog, by a colleague, has more details).

    EtherCAT master on the other hand can be implemented on a regular Ethernet MAC.

    For your reference, acontis implemented their EC-Master on both Sitara Eth ports. They have EC-Master implemented for CPSW (GMAC) Eth, and also for PRU-ICSS EMAC.

    In summary, you are correct Sitara could be used for EtherCAT master (CPSW, or PRU-ICSS) and EtherCAT slave (PRU-ICSS).

    I hope this helps to clarify.

    thank you,

    Paula

  • Dear Paula,

    Thank you for your clear answer. I am not familiar with RTOS for control & automation. Commonly I have used processors as baremetal. I hope that RTOS would not make my SW too complicated.
    As an MCU, C2000 already does not support EtherCAT master. If I am not wrong, C2000 does not contain a generic Ethernet MAC. But, It is great that Sitara supports both EtherCAT Master & Slave architecture.

    Thank you.