Page 1 of 1

Need help in interfacing DP83848 Phy controller with ESP32

Posted: Tue Oct 30, 2018 11:53 am
by blackpearl21
HI, I am trying to interface ESP32 with Phy controller DP83848, i am using the Olimex reference Hardware Link

there is one change in hardware, instead of using BD5230G to control OSC, i am controlling it from GPIO pin of ESP32,
on Power up it is LOW for particular period.

The problem is i dont get any values from PHY, i have made following change in code,

Code: Select all

#define LAN8720_PHY_ID1 0x2000 // 0x20005C90 for DP
#define LAN8720_PHY_ID2 0x5C90
but the PHY check always fails,

Code: Select all

    // Call esp_eth_smi_wait_value() with a timeout so it prints an error periodically
    res1 = esp_eth_smi_wait_value(MII_PHY_IDENTIFIER_1_REG, LAN8720_PHY_ID1, UINT16_MAX, 1000);
    res2 = esp_eth_smi_wait_value(MII_PHY_IDENTIFIER_2_REG, LAN8720_PHY_ID2, LAN8720_PHY_ID2_MASK, 1000);
res1 and res2 are always 0xFFFF

i would like to know what may be problem, i have checked pin to pin connection between PHY and ESP32 and it seems OK.
is there anyway of troubleshooting, would like to know,

regards
sushant

Re: Need help in interfacing DP83848 Phy controller with ESP32

Posted: Mon Jan 18, 2021 7:39 am
by halilarkl07
Hi,
Did you solve your problem?
Can you share your connections between esp32 and dp83848?