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:
-
f2838x_cpu1_echoback_solution
(CPU1 only) -
f2838x_cpu1_cia402_solution
(CPU1 only) -
f2838x_cpu1_allocate_ecat_to_cm
+f2838x_cm_echoback_solution
-
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!