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.
Can we setup AM243x Launchpad as EtherCAT main device and also another AM243x Launchpad as subordinate device?
If yes, can you provide the required documents needed...
If no, can you kindly mention the reason.
Thank you.
Can we setup AM243x Launchpad as EtherCAT main device and also another AM243x Launchpad as subordinate device?
Yes it is possible to use AM243x as EtherCAT Mdevice and Sub Device. SubDevice software is provided by TI in Industrial Comms : More documents could be found here AM243x INDUSTRIAL COMMUNICATIONS SDK: EtherCAT SubDevice Demos
TI does not provide Mdevice software for this you can look at our Third party offering like Ibv more info: https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1168494/faq-mcu-plus-sdk-am243x-ethercat-maindevice-with-ti-sitara-devices-am243x-am263x
Let me know if you have more questions.
Thank you for your clear response....
While looking for reference, I find the forum log https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1257180/faq-how-to-set-up-an-ethercat-system-with-am6xx-maindevice-and-am64-am243-subdevice-using-codesys-development-system/4765650#4765650 where they install RT Linux on AM64x and while installing CODESYS they link CODESYS Control for Linux ARM64 SL (paid version) and the following steps based on this installations.
Now with AM243x as MDevice, can you kindly guide us to setup EtherCAT communication with CODESYS Development system..
Thank you.
Now with AM243x as MDevice, can you kindly guide us to setup EtherCAT communication with CODESYS Development system..
It is not possible to install RT lInux on AM243 as it does not have A53 core, it has R5f core which cannot run linux so you will have to either use AM64x or get RTOS based 3rd part Mdevice software.
Hi sir,
Thank you for your timely response,
For our project, we need to use AM243x as MDevice, it is okay, if we can't install RT Linux on AM243x.
Is there any other way to configure AM243x Launchpad as MDevice and can you suggest open source RTOS based 3rd part Mdevice software.
Thank you.
You look at GitHub - OpenEtherCATsociety/SOEM: Simple Open Source EtherCAT Master
It has rtos support: Add ERIKA Enterprise RTOS support · OpenEtherCATsociety/SOEM@29df9ba · GitHub
TI has not tried porting this, it needs to be done by you.
Hi sir,
We tried your suggestion OpenEtherCATsociety/SOEM by taking Raspberry Pi 4B as Master and AM243x as Slave.
Here's the output of slave info I got with the code SOEM when connected with Am243x
Here, state of the slave is mentioned as 4 by default which is in SAFE_OP mode. How to change this into Operational Mode to process data Input and Output.
Can you please provide an example code to control any GPIOs of Am243x or transmit any data to AM243x with MDevice Raspberry Pi
Thank you.
Can you please share the wireshark trace for the same and also are you able to get the slave working with any other master(like twin cat or codesys)
Hi sir,
Sorry for the late reply,
I'm not able to attach *.pcapng file here...
I'm not getting the data on slave side i.e., Am243x . Can you provide the updated code.
I didn't tried with twincat or Codesys(paid).
Thank you.
Hi Jayasurya,
As stated before we have not validated SOEM on our side. We have validated our SubDevice(Slave) works fine with TwinCAT and codesys. So my recommendation would be to try with either TwinCAT(which is free for evaluation) and Codesys(Please refer this: link)
Can you please provide an example code to control any GPIOs of Am243x or transmit any data to AM243x with MDevice Raspberry Pi
There is no specific code for this you need to make sure master is working correctly. I tried this using codesys(link to get started mentioned above) it is working, I am able to get to op state.
Hi Sir,
Is there any reference/contact person to work closely on TwinCAT and to support for a requirement on EtherCAT communication.
If you have questions on TwinCAT you can raise questions on Beckoff support forum:https://twincontrols.com/community/twincat-hmi-troubleshooting/
If it is related to TI Ethercat device, you can create e2e threads for the same.