OpenEtherCATsociety / SOES

Simple Open Source EtherCAT Slave
Other
578 stars 249 forks source link

SOES running on Infineon KIT_XMC48_RELAX_ECAT_V1 but slaveinfo reports "No slaves found!" #49

Closed jopado1 closed 5 years ago

jopado1 commented 5 years ago

I have the SOES code compiled and running on the Infineon XMC48 Relax evaluation board (using DAVE4). I also have the SOEM running on a freescale powerPC based target and am trying to get the slaveinfo app to detect the slave. It reports: -$ slaveinfo "memac1" Starting slaveinfo ec_init on memac1 succeeded. ec_config_init 0 No slaves found! End slaveinfo, close socket

Using wireshark I see four broadcast frames from the master but the slave does not respond. I have attached the wireshark capture. Is there additional configuration either in the SOES or SOEM code that is required for these to communicate? I am running the code as-is from the repo including the sii_eeprom.bin from the SOES side. Thank you. slaveinfo.pcapng.txt

jopado1 commented 5 years ago

If executing the master on a big-endian target, be sure to modify ethercattype.h appropriately: /* Define Little or Big endian target /

define EC_BIG_ENDIAN

All is good.