after some searches, i think the answer is :
...when i tried this code :
Code: Select all
lan = network.LAN(mdc=Pin(23), mdio=Pin(18),power=None, id=None, phy_addr=1,phy_type=network.PHY_LAN8720)
i got these errors :
Code: Select all
E (346651) emac_esp32: emac_esp32_init(308): reset timeout
E (346651) esp_eth: esp_eth_driver_install(198): init mac failed
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: esp_eth_driver_install failed
I don't knwo if it could help, but when i tried the same code
Code: Select all
lan = network.LAN(mdc=Pin(23), mdio=Pin(18),power=None, id=None, phy_addr=1,phy_type=network.PHY_LAN8720)
i got new errors
Code: Select all
E (1107051) emac_esp32: esp_eth_mac_new_esp32(453): alloc emac interrupt failed
E (1107051) esp_netif_lwip: esp_netif_new: Failed to configure netif with config=0x3ffcd048 (config or if_key is NULL or duplicate key)
E (1107061) esp_eth.netif.glue: esp-netif handle can't be null
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: esp_eth_set_default_handlers failed (invalid parameter)
What should i do to deal with it?
Thank you for any help