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.

AM2634: CPSW3G PHY Loopback Test in SDK 11.00.00.19

Part Number: AM2634

Hi expert,

     Customer has issue when they use DP83826 PHY with AM2634. They want to use demo project to perform PHY loopback test.  In demo project enet_cpsw_loopback_phy_end_am263x-cc, we set LOOPBACK_MODE_PHY in syscfg 

1.png

customer would like to know what type of loopback we perform in PHY. There are several loopback modes. What is our defualt PHY loopback mode in demo prorgam? (MII or Analog Loopback?)

2.png

If customer want to change different loopback mode for example switch from MII loopback test to analog loopback test, can you please indicate where we can modify in source code?

 

Regards'

Andre

  • Hi Andre,

    Allow me to check this today and get back to you.

  • Hi Andre,

    This can be done using the ioctl handler in enet

    __IOCTL Handler:__ `Mdio_normal_ioctl_handler_ENET_MDIO_IOCTL_C22_WRITE()`

    source\networking\enet\core\src\mod\mdio_ioctl.c`

    - __Low-level function:__ Calls `CSL_MDIO_phyRegWrite2()` from the CSL layer

    - __Input parameters:__

    - User group/channel
    - PHY address
    - Register address
    - Value to write

    Please use the enet example as reference to find the syntax for calling this ioctl.

    Use can find the phy register address in the datasheet