Other Parts Discussed in Thread: DP83869, IND-COMMS-SDK
Hello Experts,
I'm trying to add custom drive support for the DP83826 PHY with AM2434. I'm using the firmware "ethernetip_adapter_discrete_io_device_mii_demo_am243x-lp_r5fss0-0_freertos_ti-arm-clang" from " ind_comms_sdk_am243x_09_00_00_03" for testing the new phy.
After comparing the PHY's registers values that I read from my board with the ones contained in Table 3-1 of this guide "DP83826 Troubleshooting Guide", I noticed that register 0x0006 is at 0xF instead of 0x7. This means that DP83826 has detected a fault has during the parallel detection process.
Which are the potential causes of this error and how can I fix them?
One other problem I have encountered is inconsistency between the value read using MDIO_phyLinkStatus and CUST_PHY_readReg(0x01); in particular CUST_PHY_readReg shows the correct link status, meanwhile MDIO_phyLinkStatus returns the opposite value.
Here's the log of the register read:
(PHY0 not connected, PHY1 not connected)
PHY0
MDIO_phyLinkStatus --> 0x0
CUST_PHY_readReg --> 0x7849
PHY1
MDIO_phyLinkStatus --> 0x0
CUST_PHY_readReg --> 0x7849
(PHY0 connected, PHY1 not connected)
PHY0
MDIO_phyLinkStatus --> 0x65535
CUST_PHY_readReg --> 0x786d
MDIO_PHY1
MDIO_phyLinkStatus --> 0x0
CUST_PHY_readReg --> 0x7849
(PHY0 not connected, PHY1 connected)
PHY0
MDIO_phyLinkStatus --> 0x0
CUST_PHY_readReg --> 0x7849
PHY1
MDIO_phyLinkStatus --> 0x65535
CUST_PHY_readReg --> 0x786d
(PHY0 connected, PHY1 connected)
MDIO_phyLinkStatus --> 0x65535
CUST_PHY_readReg --> 0x786d
PHY1
MDIO_phyLinkStatus --> 0x65535
CUST_PHY_readReg --> 0x786d