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.

AM6442: MAC-to-MAC on AM6442

Part Number: AM6442
Other Parts Discussed in Thread: SYSCONFIG

Hi,

for our product, we want to communicate between the AM6442 and another microcontroller via MAC-to-MAC communication.

In order to verify the functionality of the AM6442, we connected the two MAC ports of the AM6442 with each other like described in AM64x MCU+ SDK: MAC2MAC support .

Unfortunately, we are struggling with the test software for this. We tried to adapt the Enet(CPSW) examples (R5F) but failed.

Is there an example for this scenario? Do you have an example for MAC-to-MAC communication on this chip?

Thank you for your answer.

  • Hi,

    Currently, we don't have an example out of box to demonstrate MAC to MAC support. But with the sysconfig tools, we can support to enable MAC to MAC communication. Can you please let us know where you are facing issues so we can help solve the issues?

    We should configure the application in no PHY mode, and test for the link. Can you also mention which version of MCU+ SDK you are using? 

    Regards,
    Teja.

  • Hello Teja,

    Thank you for your answer.

    we are using mcu_plus_sdk_am64x_11_00_00_18 which seems to be the newest version of the SDK that supports the am6442.

    Can you give us a recommendation for an example in the sdk which we can use for our test.

    Mainly we would need a single send on one MAC and a receive on the other MAC.

    We tried the "enet_cpsw_loopback_mac_end" example. But how do we adapt the example to use two different MACs for send and receive?



    I have two related Questions I'd like to ask:

    Is the MAC-to-MAC feature only supported for the CPSW, or is it also possible to use this feature with the ICSS (PRU)?

    Is there a way to configure rx and tx delays (RGMII) for the CPSW MACs of the AM6442? This would help us with the MAC-to-MAC communication with the other connected microcontroller.



    Thanks for your Answers.



    Regards,
    Dennis

  • Hi Dennis,

    The loopback example uses only one macport, and tries to set it in loopback mode (for a given port). In your case, you are testing it between two MAC ports. So, I suggest using "enet_layer2_cpsw_switch" example, in which both macports are enabled. With the external MAC to MAC connection that you have established, you should be able to send packets on one port, and receive it on the other port.

    To enable this test, you would need to disable the echo-back section of the Rx task so that you the application will not keep bouncing every packet sent out by the application. Along side this, you should also select No-PHY mode in PHY configuration for both the MAC ports in syscfg-GUI tool. Please note that there are known build issues till 11.01 MCU+ SDK for using No-PHY mode, which are fixed in 11.02. Please use 11.02 release which is now available for AM64x in ti.com. You can download the latest MCU-PLUS-SDK to use it.

    Please let us know if you need any further support to test this.

    Thanks and regards,
    Teja.