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.

AM335x ISDK EtherCAT full application

Genius 5785 points
Other Parts Discussed in Thread: SYSBIOS

Hello,

I'm trying to run full application of EtherCAT in AM335x ISDKv1.1.0.4. I build and run the out file below. I see "SSC Box 1 (TIESC-001)" in TwinCAT. But I can't control LEDs on ICE2 by TwinCAT v2.11.
C:\ti\am335x_sysbios_ind_sdk_1.1.0.4\sdk\protocols\ethercat_slave\ecat_appl\Debug\ecat_appl.out

I can run demo application which controls LEDs. It's fine. I see "SSC Box 1 (TIESC-001)" in TwinCAT.
C:\ti\am335x_sysbios_ind_sdk_1.1.0.4\sdk\examples\ethercat_slave\Debug\ethercat.out

There is a description of "TI Box 1 (ti-esc)" in TwinCAT for running full application. Is this the reason why full application is not working?
http://processors.wiki.ti.com/index.php/Configuring_TwinCAT_For_AM335x

I have copied TI_ESC.xml and TiEtherCATLib.xml to EtherCAT folder. Please give me advice.

Regards,
Kazu

  • Kazu,

    Are you running Free Run mode? Is the slave in OP state? Click Box 1 (ti-esc), and see Online tab.

    Once slave is in OP state, go to Box > DO Outputs > LED N to turn it on or off.

    Thanks,

    Srikant

  • Hello Srikant,

    Thank you for your reply. I select Device1 (EtherCAT) and goto Actions > Select Set/Reset TwinCAT to Config Mode. Then I'm asked about Active Free Run, I select Yes. This put "SSC Box 1 (TIESC-001)" into OP state when I run demo application. But not when I run full application. It remains INIT state. I can't change state even though I click Op in State Machine. Is my out file of full application incorrect?

    Regards,
    Kazu