Need help in interfacing DP83848 Phy controller with ESP32

blackpearl21
Posts: 12
Joined: Wed Feb 21, 2018 4:28 pm

Need help in interfacing DP83848 Phy controller with ESP32

Postby blackpearl21 » Tue Oct 30, 2018 11:53 am

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

halilarkl07
Posts: 10
Joined: Thu May 07, 2020 9:09 am

Re: Need help in interfacing DP83848 Phy controller with ESP32

Postby halilarkl07 » Mon Jan 18, 2021 7:39 am

Hi,
Did you solve your problem?
Can you share your connections between esp32 and dp83848?

Who is online

Users browsing this forum: No registered users and 88 guests