Replies: 8 comments 29 replies
-
@MicSG-dev This lib is a web server, it has nothing to do with which interface is used or not. FYI, I am using w32-eth and lilygo eth boards with success with MycilaESPConnect, this ESPAsyncWebServer lib and ESP-DASH for example. |
Beta Was this translation helpful? Give feedback.
-
The W5500 is more complex to implement (needs SPI and lots of pins) and not as stable as say the LAN8720 (which is a PHY chip) which is cheaper and more common. |
Beta Was this translation helpful? Give feedback.
-
Clarification for the record (please correct any misconceptions I have here!): It's not like there's a single network layer in the Arduino type world, so it's not QUITE right to say that ESPAsyncWebServer is independent of the network driver. The Arduino platform has a The ESP32 platform code (ESP-IDF) has its own network stack, based on the lwip (Light Weight IP) library plus ESP32-specific hardware drivers. The arduino-esp32 implementation builds its Client/Ethernet/WiFi on top of that. ESPAsyncWebServer uses the lwip library interfaces directly (via AsyncTCP). So to make ESPAsyncWebServer work with a network interface you need a driver implementation that fits into the ESP-IDF network stack. Fortunately ESP-IDF does include support for the W5500 over SPI, so by defining the right things you can make that work, as above. But Arduino-oriented W5500 libraries like Ethernet3 will not work. |
Beta Was this translation helpful? Give feedback.
-
Hello, i'm using a w5500
I get this message on serial: w5500.mac: emac_w5500_transmit(481): free size (350) < send length (0) What does it mean? |
Beta Was this translation helpful? Give feedback.
-
Thanks @MicSG-dev ! Then I tried to integrate this in a bigger app but I get these errors, seems to be that the right ETH.h lib is not called
here is my ini file:
here the function:
How can I fix it? |
Beta Was this translation helpful? Give feedback.
-
Hello, I checek this lines in .ini file If change by Then errors appear in the example that was working. My problem is that using just "platform = espressif32" a lot of other errors appear. |
Beta Was this translation helpful? Give feedback.
-
Hello. BEFORE
AFTER
I did some tests here and from what I've seen this happens because when REMOVING the version in the .ini file, PlatformIO obtains the package from https://github.com/tasmota/arduino-esp32 (que É compatível com o W5500): Note that the Ethernet/ETH_W5500_Arduino_SPI example is present: By INSERTING version 6.9.0 into the .ini file, PlatformIO gets the package from https://github.com/platformio/platform-espressif32 (which is somehow NOT compatible with the W5500). Note that there is no Ethernet/ETH_W5500_Arduino_SPI example: The solution
Use the 3.x package, where in this case below I'm using Arduino core 3.1.0 rc2 based on IDF 5.3.1+:
|
Beta Was this translation helpful? Give feedback.
-
Hello @mathieucarbou @MicSG-dev thanks for the support. I used :
Backtrace: 0x4008354d:0x3ffb1fc0 0x4008e22d:0x3ffb1fe0 0x400945f6:0x3ffb2000 0x40134430:0x3ffb2130 0x4011de0a:0x3ffb2150 0x400e328a:0x3ffb21c0 0x400ef13a:0x3ffb2240 0x4011f6a3:0x3ffb2270 0x4008efaa:0x3ffb2290 and:
22:06:53.761 > #0 0x40131273 in memp_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/memp.c:370 (discriminator 2) |
Beta Was this translation helpful? Give feedback.
-
It would be great to be able to use an ethernet module like the W5500 on the ESP32 and be able to use this library.
Beta Was this translation helpful? Give feedback.
All reactions