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.
HI, expert:
Now I have completed the experiment of Ethercat function of F28388D ControlCard (its software location is: D:\ti\ C2000 \C2000Ware_MotorControl_SDK_3_01_00_00\solutions\ TMDXIDDK379D \ F2838x), I was able to scan the device successfully using Twincat software and communicate with CCS software. I then modified the code to be used on the control board of my own design (the chip is also F28388D),However, it is a pity that I could not successfully scan the device using Twincat software.I need your help to confirm the following problems:
1.Please help to confirm whether my EtherCAT circuit diagram design is correct as follows?
2.I saw the following configuration in the experimental software of Ethercat function of F28388D ControlCard. May I ask whether the control board designed by myself should also have this part of configuration? Is this part of the configuration necessary?After checking the circuit diagram of TI, I found that GPIO of these functions was not used, so my software deleted this part of the code on the basis of TI routines.
// PHY CLK // GPIO_setPinConfig(GPIO_154_ESC_PHY_CLK); // Sync and Latch // GPIO_setPinConfig(GPIO_125_ESC_LATCH0);// GPIO_setPinConfig(GPIO_126_ESC_LATCH1);// GPIO_setPinConfig(GPIO_127_ESC_SYNC0);// GPIO_setPinConfig(GPIO_128_ESC_SYNC1);// GPIO_setDirectionMode(127, GPIO_DIR_MODE_OUT);// GPIO_setDirectionMode(128, GPIO_DIR_MODE_OUT);//
Best regards
Johnson Alanl
Hi Johnson,
1.Please help to confirm whether my EtherCAT circuit diagram design is correct as follows?
I will need some time to review and get back to you. How are you currently clocking the PHYs? Can you provide that part of the sch?
It may be good for you to request the Ethernet PHY team review as well by posting on their forum.
2.I saw the following configuration in the experimental software of Ethercat function of F28388D ControlCard. May I ask whether the control board designed by myself should also have this part of configuration? Is this part of the configuration necessary?After checking the circuit diagram of TI, I found that GPIO of these functions was not used, so my software deleted this part of the code on the basis of TI routines.
You're right that these signals aren't required.
Best,
Kevin
Hi,Kevin:
Thank you very much for your patient reply!
1.
I will need some time to review and get back to you. How are you currently clocking the PHYs? Can you provide that part of the sch?
It may be good for you to request the Ethernet PHY team review as well by posting on their forum.
In terms of circuit design, my clock here is from an external clock source.
2.
You're right that these signals aren't required.
ok!Thank you for your confirmation.
If there are no errors in the hardware design, I think I should look for errors in the software. Unfortunately, I searched for a long time and did not find any mistakes. Can you provide some ideas here about Twincat software not being able to scan the device?
Best regards
Johnson Alanl
Hi Johnson,
I just realized the SW solution you are currently using. Please use the software examples available in the C2000WARE installation directory below. Also see the SW User's Guide available in the \doc folder of this directory, as it will guide you through using F2838x EtherCAT and software.
C:\ti\c2000\C2000Ware_4_01_00_00\libraries\communications\Ethercat\f2838x
If you made changes to the F2838x device pins used for EtherCAT (which I can't tell from the schematic images provided) you will need to make changes to the 'setupESCGPIOs()' function for the respective signals.
Best,
Kevin
Hi Kevin,
Thank you for your patient reply! I will try the code of the example according to your guidance, thank you!
Best regards
Johnson Alanl
Hi Johnson,
Great, please let me know how your testing goes.
Best,
Kevin
HI Kevin,
I am very sorry that I replied a little late.
It's a pity that I haven't finished debugging yet, and I still have the same problem as last time.It's a pity that I haven't finished debugging yet, and I still have the same problem as last time. Besides, I am busy recently, so I may not have much time to do EtherCAT debugging.
Best regards
Johnson Alanl
Hi Johnson,
That's OK. Feel free to ask more questions when you return to working on your EtherCAT debug. You can post on this E2E if it's still open or start a new post if this one happens to close.
Best,
Kevin