platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
856 stars 571 forks source link

esp.emac: emac_esp32_transmit(229): insufficient TX buffer size #1309

Closed folkertvanheusden closed 4 months ago

folkertvanheusden commented 4 months ago

Hi,

With lots of network-traffic, the WT-ETH01 ESP32 module goes into a loop where it only prints "esp.emac: emac_esp32_transmit(229): insufficient TX buffer size" and never returns to the main code.

I googled it and found this: https://github.com/espressif/esp-idf/issues/12037 to be exact: https://github.com/espressif/esp-idf/issues/12037#issuecomment-1685693130

Is this something that can be enabled in the platformio version?

regards

valeros commented 4 months ago

Hi @folkertvanheusden, what framework are you using?

folkertvanheusden commented 4 months ago

Hi, This is with the Arduino framework.

valeros commented 4 months ago

Unfortunately, there is no an easy way to enable that configuration with Arduino, mainly because the it's a compile-time option for ESP-IDF. I believe you can try to compile your application as a mixed Arduino/IDF project (with enabled CONFIG_ETH_TRANSMIT_MUTEX), take a look at an example here.

folkertvanheusden commented 4 months ago

Thanks for investigating this!