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.

AM3357: EtherCAT PHY address

Genius 5785 points

Part Number: AM3357
Other Parts Discussed in Thread: TLK110, TLK105

Hello,

I'll develop EtherCAT application using AM3357 and two DP83848s. Can I freely choose the range of PHY Address from 1 to 31? For example, 1 and 17. In ICE2, the PHY Address of two TLK110s look like 1 and 3. Referring to BECKHOFF's PHY Selection Guide, ET1100 and 1200 have an item of "PHY Address Offset" and I want to know whether it applies to AM3357.

Regards,
Kazu

  • Hi,

    The EtherCAT experts have been notified. They will respond here.
  • Hi Kazu, From Beckhoff "PHY selection Guide" you referred above, I found the following:

    "The PHY addresses should be equivalent to the logical port number (0-3). Some ESCs also support a fixed offset (e.g. offset 16, PHY addresses are logical port number plus 16: 16-19), or even an arbitrary offset. If none of these possibilities can be used, the PHY address should be configured to logical port number plus 1 (1-4), although some features (e.g., Enhanced Link Detection) can not be used in this case, because apart from the optional configurable PHY address offset, the PHY addresses are hard-coded inside the ESCs."

    Then, it seems you could use an arbitrary offset. However, it might be better/easier to keep the same logical ports numbers as AM335x uses in EtherCAT slave example. At least, there is any reason for not doing it.

    By the way, from where did you see TLK110s PHY address 1 and 3?

    thank you,
    Paula

  • Hi Paula,

    Thank you for your reply.

    Paula Carrillo said:
    From Beckhoff "PHY selection Guide" you referred above, I found the following:

    Yes, they're requirements as below when using Beckhoff ESC, but I'm not sure if they also apply to AM3357.

    "Additional requirements to Ethernet PHYs used with Beckhoff ESCs:"

    Paula Carrillo said:
    By the way, from where did you see TLK110s PHY address 1 and 3?

    I referred to TLK110 Datasheet as below and two comments of "PHYAD SETTING" in the schematic of ICE2. Is it better to keep PHY addresses 1 and 3 on our custom board?

    "PHYAD[4:1] pins have weak internal pull-down resistors, and PHYAD[0] has weak internal pull-up resistor, setting the default PHYAD if no external resistors are connected."

    http://www.ti.com/tool/tmdsice3359

    Regards,

    Kazu

  • Hi Kazu, quick question from where do you get EtherCAT slave? from Industrial SDK? or from PRU-ICSS EtherCAT software component?

    Anyhow, I was checking with a colleague and he mentioned there shouldn't be any specific address required for EtherCAT, and it can be any value up to 32.

    I think you can keep Phy Address 1 and 3

    #define AM335X_ICSS1_PORT1_PHY_ADDR 1

    #define AM335X_ICSS1_PORT2_PHY_ADDR 3

    thank you

    Paula

  • Hi Kazu, I also got the information that TLK100 documentation has more details that can help understand phy address setting. Below can applies to TLK105 and DP8x too.

    3.3 PHY Address

    thank you,

    Paula

  • Hi Paula,

    I understand. Thank you for your kind help.

    Regards,
    Kazu