-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix run out of heap on ESP32 #6819
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
Conversation
Hi @nikito7 , thanks for your patch :) Would you be able to tell us more about the background? What situation did you run out of heap? Also, is there any impact on other uses of the memory by making this change? |
It may only be used here:
Line 1638 in 066609a
If 1500 default it's all free heap, it's bad. This it's only for nodes. I don't know if impact anywhere. Because my true solution for my problem was:
My current it's about 90kB now. |
I don't think the proposed solution is reasonable. Instead of changing the global value (which is also used for e.g. nrf devices that do not have much memory) you can limit the use to specific devices in the platformio.ini files (see also arch folder). |
This PR it's mainly a proof of concept. If someone have issues, adapt this for your needs:
|
🤝 Attestations
ESP32 devices.