Wiznet W5500 on the ESP32 (2022 edition) #9471
Replies: 1 comment 4 replies
-
That is correct. lwIP is integrated into the IDF and we only really have access to the top layer of it, the functions to open and use sockets.
To integrate Wiznet into lwIP would require either (1) getting official support for Wiznet in the IDF, likely that would take a long time; (2) finding out a way to hook into the bottom layers of lwIP on the ESP32, likely that will be difficult; (3) add a second copy of lwIP to the ESP32 build specifically for Wiznet, likely that will cause lots of issues coexisting with the built-in lwIP. The easiest way to use Wiznet would be without lwIP, using the TCP/IP stack on the Wiznet.
The ESP32 supports quite a few different LAN PHYs (eg IP101, RTL8201, KSZ8041) and it would be much simpler to just use one of these if you can source them. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to get the Wiznet W5x00 running on the ESP32. I note there are a few discussion in the forums on this from previous years, but things seem to be a bit different now. I'm hoping to get this working using the C-based drivers, not the pure-python implementation mentioned in this thread
So I've tried adding this to
boards/GENERIC_S3/mpconfigboard.cmake
:but compilation fails due to the LWIP option there.
So I'm now trying to understand where LWIP sits in the ESP32 port. I understand it's part of the ESP-IDF - does that mean it's not exposed to micropython in the same way as in other ports? What would be my options here - would I need to try to get wiznet support into the ESP-IDF, or is there a way to use the existing wiznet drivers in
extmod
? It seems the wiznet library can work without LWIP, but if I compile it without this, I can't seem to access it through thenetwork
module. I would prefer to have wiznet and wifi accessible through the standardnetwork
module (though not at the same time).While using the LAN8720 PHY would be a 'cleaner' option, there are supply-chain issues with these at present (no industrial-rate stock till late 2023) so I'm looking at other options; the wiznet seems very available.
Beta Was this translation helpful? Give feedback.
All reactions