emac insufficient buffer size error on ethernet

RonWebski
Posts: 2
Joined: Thu Jun 13, 2024 10:42 am

emac insufficient buffer size error on ethernet

Postby RonWebski » Thu Jun 13, 2024 10:45 am

When running ethernet examples on esp32 ethernet dev board, getting following error:

esp.emac: emac_esp32_transmit(231): insufficient TX buffer size[0m

what could be the cause, using latest ESP-IDF SDK.

ESP_ondrej
Posts: 210
Joined: Fri May 07, 2021 10:35 am

Re: emac insufficient buffer size error on ethernet

Postby ESP_ondrej » Wed Jun 19, 2024 2:10 am

What example do you run? Anyway, it indicates you are trying to transmit more data than the hardware is able to process, i.e. you are reaching to limit of maximum Ethernet bandwidth of 100 Mbps. In reality it little bit less. You need to limit bandwidth. With default configuration of 10 Tx buffers, stable throughput is around 80 Mbps. If you observe it with iperf, you can experiment with bandwidth limit (-b option). You can also try to increase number of Tx buffers in Kconfig.

RonWebski
Posts: 2
Joined: Thu Jun 13, 2024 10:42 am

Re: emac insufficient buffer size error on ethernet

Postby RonWebski » Thu Jun 20, 2024 4:37 pm

Thanks for the reply, Will try the bandwidth option. The example i tried was "basic" example, also tried iperf example, it also gives the same error after a while. I noticed in iperf, ip addresses are zero.

ESP_ondrej
Posts: 210
Joined: Fri May 07, 2021 10:35 am

Re: emac insufficient buffer size error on ethernet

Postby ESP_ondrej » Tue Jun 25, 2024 5:54 am

That's strange, "insufficient buffer size error" should not occur in "basic" example! Could you please provide more information about your setup?
- What board do you use?
- What is your exact IDF version?
- Please share logs from "basic" example if insufficient buffer size error occurs.

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 55 guests