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.

TMDSIDK437X: Ethercat Status register @ Twincat 0x110

Expert 1700 points
Part Number: TMDSIDK437X

Hi Team,

when using Twincat with the IDK I can look at the ESC memory @ status register 0x110

these bits are bits reported by PRU ? how do I tell how each of theses bits are set @ PRU code ? I have a weird issue in which although I can talk with the sitara device at a custom board, I see physical link bits are both false (and only one phy seems to connect the device to twincat)

  • Hi
    1. Can you check if "TIESC_LINK0_POL" and "TIESC_LINK1_POL" are defined correctly for your board in "{INSTALL_DIR}\protocols\ethercat_slave\include\tiescsoc.h"?

    2. PHY addresses are received by calling oard_getPhyAddress() from "{INSTALL_DIR}\examples\board\idkAM437x\board_phy.c". Please verify if the correct values are being passed here.

    3. You can check the MDIO_LINK register for the MDIO module of ICSS. Please verify if the link is seen for both the PHYs in this register.

    Let us know if any of this helps in resolving the issue.

    Regards
    Dhaval Khandla

  • Thanks for your answer.

    I was able to get the expected value from 0x110 after following your advice.

    can you please comment on

    "these bits are bits reported by PRU ? how do I tell how each of theses bits are set @ PRU code ?"

    I am trying to obtain a deeper understanding of the issue, if possible 

  • Hi

    "these bits are bits reported by PRU ? how do I tell how each of theses bits are set @ PRU code ?"

    This register is set by the EtherCAT Slave Controller Firmware running on PRU.

    Regards
    Dhaval Khandla