-
Notifications
You must be signed in to change notification settings - Fork 10
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
Examples fail due to lack of memory #42
Comments
While it shows some failed memory allocations the real error is |
Thanks, I used Also, for the async-client I needed to specify the feature Also in the async version, after returning the response it prints out continuously
Seems like it's really tight on memory, does it mean that if I rely on it I will get such memory allocations issues in ESP32 depending on what exactly I'm trying to do? Or once it's working it's going to work well? I prefer not to spend a lot of time just to find out that it works only in demo apps. Also, the memory that's exhausted is only the dram.seg2, right? (which normally isn't in use by applications). The rest of the RAM is available for my usage? |
Those heap allocations depend on what is really happening and not all of that is controlled by your code but depend on the network connection etc. - if memory is already very tight that's for sure not ideal In the case of ESP32 the WiFi ram and esp-mbedtls RAM is dram-seg2, yes. For other chips it's not separated |
I tried to run the sync_client and async_client examples on ESP32, both had memory issues as below.
I tried to increase the esp_wifi heap size incrementally and tested, it always failed on memory allocation, until it couldn't compile anymore due to too large heap, reporting: section
.dram2_uninit' will not fit in region
dram2_seg'Any way to get it to work? And even if I do, does it mean no memory will be left for my app? I don't need much but would need something.
Here are the execution logs:
The text was updated successfully, but these errors were encountered: