Page 1 of 1

ESP-AT - unable to improve performance - Error when increasing buffers - m:10259 failed

Posted: Fri Jun 27, 2025 4:18 pm
by dandavson
Hi - I'm using the ESP32-AT firmware with 4mbps uart and trying to improve throughput. Following this guide, and building with the [Simple] Quick Configuration: https://docs.espressif.com/projects/esp ... figuration

When using the parameters, as per the guide, I get corruptions in the data stream when doing http get for files of several MB, and monitoring the USB uart, I see the error:

Code: Select all

m:10259 failed
m:10259 failed
m:10259 failed
I start seeing the issue when I set:
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=32768
CONFIG_LWIP_TCP_WND_DEFAULT=32768

it gets worse if I set higher (e.g. 64k as per article linked above). I'd also like to draw attention to the fact that the values specified in the article, and reproduced here:

Code: Select all

# LWIP
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=65534
CONFIG_LWIP_TCP_WND_DEFAULT=65534
CONFIG_LWIP_TCP_RECVMBOX_SIZE=12
CONFIG_LWIP_UDP_RECVMBOX_SIZE=12
CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=64
are inconsistent with the docs:
https://docs.espressif.com/projects/esp ... vmbox-size

Please advise on what this error means and how I can go about increasing the buffers to 32k or 64k without errors. I've attached. an example config that I see the issue with when performing large http GET. (e.g 1-10MB)

Regards
Dan

Re: ESP-AT - unable to improve performance - Error when increasing buffers - m:10259 failed

Posted: Mon Jun 30, 2025 2:19 am
by esp-at
It means that failed to malloc a buffer. The system has run out of the RAM. you have to reduce some buffer size and buffer count according to your need.