Skip to content

LAN8720 PHY can fail to initialize or crash. Methods to monitor or query this are inaccessible for arduino core >=2.0.0 #6500

Closed
@smuellener

Description

@smuellener

Board

ESP32 PICO D4 with LAN7820

Device Description

Custom

Hardware Configuration

LAN7820 connected to ESP32 via RMII in a standard way. ETH.begin() can be called without arguments.

Version

v2.0.2

IDE Name

Arduino IDE with VisualMicro

Operating System

Windows 11

Flash frequency

40Hz

PSRAM enabled

no

Upload speed

115200

Description

Before arduino-esp32 v. 2.0.0 we could call the following function:

  • esp_eth_smi_read()

Those functions helped us to monitor the PHY more closely as the PHY can crash during operation (e.g. due to electrostatic discarges). In case the phy crashed, we reinitialized it using

  • phy_lan8720_init()

Those functions are not available anymore in arduino core version >= 2.0.0 therefore this monitoring is not possible anymore.

Please reintroduce a possibility to read the PHY registers so that we can monitor the correct operation of the PHY again. We are particularly interested in:

  • Is the phy answering to register read operations generally
  • Was the auto negotiation successful

Sketch

-

Debug Message

-

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions