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

dandavson
Posts: 1
Joined: Fri Jun 27, 2025 3:54 pm

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

Postby dandavson » Fri Jun 27, 2025 4:18 pm

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
Attachments
sdkconfig.txt
example config causing the issue
(741 Bytes) Downloaded 78 times

esp-at
Espressif staff
Espressif staff
Posts: 335
Joined: Mon May 09, 2022 3:00 am

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

Postby esp-at » Mon Jun 30, 2025 2:19 am

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.

Who is online

Users browsing this forum: No registered users and 1 guest