Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: esp_eth_driver_install failed #1

Open
jingzhaohlj opened this issue Nov 27, 2021 · 4 comments
Open

OSError: esp_eth_driver_install failed #1

jingzhaohlj opened this issue Nov 27, 2021 · 4 comments

Comments

@jingzhaohlj
Copy link

MicroPython v1.16 on 2021-07-22; ESP32 module with ESP32

Type "help()" for more information.

%Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "", line 28, in
OSError: esp_eth_driver_install failed
%Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "", line 28, in
OSError: esp_eth_set_default_handlers failed (invalid parameter)

How to solve this problem?

@emard
Copy link
Owner

emard commented Nov 27, 2021

HM, it was long time I tried this, it was micropython
1.12 or 1.14 at that time and it was working I have
never seen this error.

currently I have not ready setup connected
esp32 and lan8270 (but I hope to make it soon)

@nadolny
Copy link

nadolny commented Sep 20, 2022

Test with:

ESP ISO POE - Olimex

Compiling microPython with espressif SDK 4.4 for ESP32

MicroPython v1.19.1-409-g0e8c2204d on 2022-09-19; ESP32 module with ESP32
Type "help()" for more information.

%Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "", line 28, in
OSError: esp_eth_set_default_handlers failed (invalid parameter)

Same question...

@nadolny
Copy link

nadolny commented Sep 20, 2022

import machine
import network

machine.reset()
lan = network.LAN(Id=0, mdc=machine.Pin(23), mdio=machine.Pin(18), power=None, phy_type=network.PHY_LAN8720, phy_addr=1)
lan.active(1)

The trick was realizing a machine.reset() is needed to change any of the parameters.
ref: https://www.reddit.com/r/esp32/comments/us8w13/ethernet_lan_using_micropython_118_on_the/

Now run Thonny IDE:

MicroPython v1.19.1-409-g0e8c2204d on 2022-09-19; ESP32 module with ESP32
Type "help()" for more information.

%Run -c $EDITOR_CONTENT
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4344
load:0x40078000,len:13816
load:0x40080400,len:3340
entry 0x40080618
MicroPython v1.19.1-409-g0e8c2204d on 2022-09-19; ESP32 module with ESP32
Type "help()" for more information.

@dm-vev
Copy link

dm-vev commented Dec 28, 2023

same issue

E (60117) lan8720: lan8720_init(393): wrong chip ID
E (60117) esp_eth: esp_eth_driver_install(199): init phy failed
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: esp_eth_driver_install failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants