From revision 7 onwards, the wESP32 boards are now using ethernet PHY type RTL8201 instead of LAN8720. Support for RTL8201 was added to espressif/arduino-esp32 after the fork used by WLED. Is anyone running WLED using ethernet on a newer wESP32? If so, what was your approach? Thx.
EDIT:
I was able to compile WLED after updating references to espressif32 to 5.1.1 and arduino-esp32 to 2.0.2 which allowed me to make the necessary updates for RTL8201. Successfully flashed the board. We’ll see how stable it is. I plan to use DDP to control 4 other controllers for a total of 36 outputs (9/controller). I wanted all this traffic isolated on it’s own switch and not on wifi.
I would suggest confirming your board/ethernet are working before flashing if you haven’t used the board yet. Simple to do by confirming it gets an IP assuming you have a POE switch. Also, assume you have the wESP32-Prog module that plugs into J2. I would also suggest soldering a 6 pin DIP to J2. The DIP is useful for removing the prog module when not needed and tying into common ground. Don’t forget the 5V/12V jumper if you’re planning to power directly from the GPIO header.
The following edits should get you up and running, but they need to be refactored to add a separate wESP32 option for RTL8201 so both boards are supported. This is quick and dirty for now editing the existing wESP32 config so it can be selected in the UI. Also, rev7 onward now has 16 MB of flash instead of 4 MB so a different board_build partitions file should be used but haven’t changed that yet either. This should probably be in platform_override.ini as well. This is all very hackish at the moment.
thanks so much for this information. i’m having a heck of a time making it work, though… after making these edits, building (in VS Code) fails, claiming there is no file wled00/wled00.ino.cpp
any other advice would be really appreciated; running WLED on using the wESP32’s ethernet port is a really exciting prospect!
following up on my own post, it seems that the error i talked about “magically” goes away if i build the project two or three times in a row. very weird, but i don’t have to understand it as long as it works!