TMS320F28388D: F28388D EtherCAT Slave not detected in TwinCAT – tried CPU1/CM example projects but no success

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE, TMDSCNCD28388D

Tool/software:

Hello Team,

I am working with the TMS320F28388D device and following the “EtherCAT Slave Controller Software User’s Guide” (located in C2000 SDK → libraries → communications → EtherCAT → f2838x → doc). My goal is to bring up the EtherCAT slave and get it detected in TwinCAT.

So far I have tried the following example project combinations provided in C2000Ware:

  1. f2838x_cpu1_echoback_solution (CPU1 only)

  2. f2838x_cpu1_cia402_solution (CPU1 only)

  3. f2838x_cpu1_allocate_ecat_to_cm + f2838x_cm_echoback_solution

  4. f2838x_cpu1_allocate_ecat_to_cm + f2838x_cm_cia402_solution

I also used the SSC tool, generated the c files and header files, added the generated code into the slave project, built successfully, flashed, and ran the code in debug mode. However, in none of these cases was I able to scan/detect the F28388D EtherCAT slave in TwinCAT.

I am using Intel Ethernet adapter (supported by EtherCAT) and installed twincat adapter driver, I am able to see TwinCAT-Intel PCI Ethernet Adapter (Gigabit) V2 in device manager under network adapter . I disabled all other network protocols on the adapter except EtherCAT Device Protocol, but TwinCAT still cannot find the slave. I also tried to manually add the slave/box in TwinCAT, but communication still does not work.

I am not able to identify the root cause.

  • Could the issue be on the controller side (wrong project or wrong SSC integration)?

  • Or is it related to TwinCAT settings?

  • Or could it be a problem with my PC/adapter configuration?

Any guidance on the correct starting point for EtherCAT on F28388D (CPU1 vs CM examples) and tips for debugging why the slave does not appear in TwinCAT would be very helpful.

Thank you!

  • Hi,

    Are you using the TMDSCNCD28388D Eval board? Or some custom hardware?

    What does TwinCAT show when you perform a scan? Can you provide screenshot and pictures of your hardware set-up?

    After successfully scanning updating the ESI file in the EEPROM will be the first step.

    Best,

    Kevin

  • Hi Kevin,

    Thanks for your reply. Yes, I am currently using the TMDSCNCD28388D Evaluation board. Once I am able to run the example successfully, I will then move on to testing on my custom board.

    I am attaching the hardware setup pictures along with a screenshot of the error I am seeing in TwinCAT.

    Just to confirm my understanding:

    • For the first-time scan, the ESI file does not need to be written into the EEPROM, correct?

    • After a successful scan, the ESI file must be updated in the EEPROM in order to run the slave in operational mode, correct?

    • Without the EEPROM updated, the PDO objects (switch/LED data) will not change during operation, correct?




      TMDSCNCD28388D Evaluation board setup

    Best regards,
    Anoop

  • Hi Anoop,

    You are not able to scan and add the Device even, see my image below for reference. If that isn't working then you certainly won't be able to scan any boxes (i.e. connected C2000 devices).

    Can you try disabling and re-enabling the Ethernet adapter? Also restarting your PC.

    You could try adding the device manually. Right-click on Devices and select "Add New Item"

    Best,

    Kevin

  • Hi Kevin,
    I have tried disabling and re-enabling the Ethernet adapter and also restarting the PC. it didn't worked? I have added manually EtherCAT Master and then also scanned the boxes then also not able to get. then I added manually you can see below.



    Manually I have added the Slave you can see.



    I tried to read and write also but it doesn't worked because the communication is not established. 


    As you can see in the screenshot, when I try to read the EEPROM, all values appear as zero. Earlier, there were some values visible, but now the memory window shows only zeros where I should be able to see valid data.


    The main issue is that the device is not being scanned on my system, which means there is no communication between the device and TwinCAT. I am unable to identify the exact cause of this problem despite trying all possible steps. Could you please suggest what might be the reason?

    Best regards,
    Anoop