ESP32 with LAN8720 Module - Can't get it to work

darath
Posts: 3
Joined: Wed Apr 21, 2021 10:39 am

ESP32 with LAN8720 Module - Can't get it to work

Postby darath » Wed Apr 21, 2021 10:49 am

Hello,

For my project I tried to give my ESP32 Ethernet connection via a LAN8720 Board for testing, later I want to build it onto my own PCB. I followed this guide https://sautter.com/blog/ethernet-on-es ... g-lan8720/ (because I didnt had 4K7, I used 5K1 which shouldn't matter that much - PinOut is the same) and tried to use it the ETH Lan 8720 Example Codes even with changed settings I only get :

12:43:08.137 -> E (1008) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff
12:43:09.128 -> E (2008) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0xffff
12:43:09.128 -> E (2008) emac: Initialise PHY device Timeout

As for the ESP I use it's this one :
https://www.az-delivery.de/en/products/ ... f65e&_ss=r
Datasheet:
https://cdn.shopify.com/s/files/1/1509/ ... 1604068666

I only did really small projects with an ESP32 before. Like controlling some Relays, WiFi Stations, Blinking and I2C Stuff so I feel a bit overloaded with the ethernet part as I can't really check what I did wrong without help.

If you can help me, maybe have a good guide I would really appreciate it!

Thanks and Greetings
Darath

darath
Posts: 3
Joined: Wed Apr 21, 2021 10:39 am

Re: ESP32 with LAN8720 Module - Can't get it to work

Postby darath » Fri Apr 23, 2021 6:17 am

Okay I could get it to work with trial and error and some esp32 ethernet schematics.

If you follow the guide, you need to put the oscillator enable onto the NC pin and onto pin 17. To make it work, I didn't do that. I just ignore this complete and changed to pull-up resistor on pin0 to 10k. Also the address needs to be looked at. It can be either 0 or 1.

Who is online

Users browsing this forum: No registered users and 81 guests