New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AT-Firmware: SEND FAIL caused by E:M1584. What does E:M1584 mean? #238
Comments
Hi, |
I used only TCP-Connections. The data have been traced with Salaea Logic (download free:) Here is the completed log: I also exported the Date in a Microsoft Word File (Debug is green, AT in red, AT out blue), due to the timing and the slower baud rate of the debug interface, some outputs are mixed together: Here another version without ESP-Debug (plain AT-Interface): |
Thanks for your detailed log. Only after May Day can we debug it. |
Before i put it under stress (Pressing Strg+F5 to request all pages from my webserver) SYSRAM returns 40.000 - 35.000 Bytes. Before it crashed, it still has ~ 26.000 Bytes left. I'm wondering why there can be a value greater than 32562 Bytes (see Section info below) (I also see EM:2936 and the AT-Rx Buffer has a problem) I had some trouble to get a working make file. Maybe I made I mistake there?
This is my makefile: |
The memory leak leads to a wide variety of effects. At the moment I have the problem, that I want to open a new connection with "CIPSTART" but I get no response to that. If I try a simple AT (after about a minute) I always get a "busy p". I also tried the precompiled "new" AT-Firmwer (#239) from LoPo and I see exactly the same problems. So I don't think that it is a problem of my compilation. |
I wonder if this is correct: Should it not be like this:
I noticed that years ago when ssl was an even bigger pain than it is now and changed it. My project works fine for days and weeks with the current master branch and ssl calls every 30 seconds- but I have to admit that I have lots of free memory and I don't get out of memory errors in the first place. |
There is even more: |
@xcguang Can Heap-Fragmentation be responsible for the problem? |
@Maintraxx |
@xcguang Thank you very much for your support! I compiled the same source code and tried again. With this new binarys, I have 60k of free memory (instead of 40k)! With this new binarys, everythings seems to work now! I have no idea where the difference are. As already said, i also tried the binaries from another users and got the same issues, but for me it works now. |
I'm using the actual SDK 3.1.0 dev. All files are up2date.
I implemented an webserver on an STM32 which is connected to the ESP8266. I encounted after some page reloads, that the ESP8266 accepts data to send, but does not send them out. It seems, that the espconn is out of memory. But how can i fix it?!
The following screenshot is a trace. I recorded the AT interface and the debug line.
The text was updated successfully, but these errors were encountered: