Page 1 of 2
Arduino ESP32 with KSZ8081 phy
Posted: Thu May 31, 2018 7:47 am
by bbreukelen
Hi,
I'm using an ESP32 with a KSZ8081 phy network board.
I noticed that the LAN8720 and TLK110 are supported in the SDK but how can I add support for the KSZ8081?
I probably only need to change the expected chip id from registers 2 and 3, but the existing libraries are compiled object files which I can't edit.
Did anyone ever successfully use the esp32 with Arduino with a network phy other than the sdk-builtin ones?
Thanks!
Bo
Re: Arduino ESP32 with KSZ8081 phy
Posted: Mon Oct 01, 2018 7:07 am
by MagnoCube
Hello Bo,
Soon i will be trying to do the same thing as you tried to do 4 months ago.
I wonder if you have had any progress or hints for me to keep in mind.
Same goes the other way around. If i will manage to get the PHY working i will let you know!
Many thanks,
Stefan
Re: Arduino ESP32 with KSZ8081 phy
Posted: Fri Oct 12, 2018 9:54 am
by bbreukelen
Hi Stefan,
No, I decided to go with another PHY so we changed the hardware.
Good luck,
Bo
Re: Arduino ESP32 with KSZ8081 phy
Posted: Fri Oct 12, 2018 12:36 pm
by MagnoCube
I have just received the PCB for testing. I will let you know if i get some results.
(in case you or someone else might need it)
Re: Arduino ESP32 with KSZ8081 phy
Posted: Tue Jan 08, 2019 11:00 am
by MagnoCube
Alright, I got everything working. However it is all done in the ESP-idf from Espressif (and not the Arduino core).
Basically i copied the example of the LAN8720 and removed all the setup. (so no internal registers got changed, all stayed on default), and changed all the names to from LAN870 to KSZ8081
Then i changed the PHY-ID to the one specified in the datasheet.
I know this is a dirty workaround. but i had no luck/time to get it done in a nicer way.
The RMII bus still gives an interrupt when the link is up.
Everything works fine, I did not have a single problem regarding Ethernet connection.
I added a image for a more clear picture.
- Capture.PNG (44.72 KiB) Viewed 12777 times
Hope i could help anyone out!
Re: Arduino ESP32 with KSZ8081 phy
Posted: Mon May 18, 2020 2:35 pm
by esarac
Do you use 8081MLX for connection.Is there any connection schematic which you can share ?
Best Regards
Enis
Re: Arduino ESP32 with KSZ8081 phy
Posted: Thu Sep 10, 2020 7:42 pm
by ThisIsMrT
Hi there,
just wanna do the same thing. Because I have couple of KZ8081 in the laboratory stock.
Did you improve your dirty solution?
Did there occur any problems so far?
Best Regards
Thomas
Re: Arduino ESP32 with KSZ8081 phy
Posted: Fri Feb 19, 2021 3:35 pm
by linkineo
Hey, just posted a PR to have the KSZ8081 driver mainline. It's for esp-idf 4.3 but you can easily backport it.
https://github.com/espressif/esp-idf/pull/6578
Re: Arduino ESP32 with KSZ8081 phy
Posted: Wed Dec 21, 2022 12:12 pm
by kdgoranale
Hi,
I am using ESP-IDF and I can see now the chip selection (KSZ80xx) is given in the ethernet example code. I have tried to configure the ethernet example for KSZ8081 but have not been able to succeed.
I am getting "Ethernet Started" but link is not getting up and getting IP address.
Please help me to configure the project KSZ8081 till I am getting IP address and network connectivity.
Thank you!
Re: Arduino ESP32 with KSZ8081 phy
Posted: Fri Dec 23, 2022 7:43 am
by ESP_ondrej
Hi,
do you use your own custom board?