Skip to content
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

Allows spiram malloc with wifi dynamic buffers - better free heap #5791

Merged
merged 5 commits into from
Oct 21, 2021
Merged

Allows spiram malloc with wifi dynamic buffers - better free heap #5791

merged 5 commits into from
Oct 21, 2021

Conversation

SuGlider
Copy link
Collaborator

@SuGlider SuGlider commented Oct 21, 2021

Summary

Modifies WiFi lib to allow dynamic buffer allocation along with SPIRAM MALLOC enabled
This gives more heap space to the users

Related PR in Arduino Lib Builder: espressif/esp32-arduino-lib-builder#47

Impact

WiFi will work the same as it was in version 1.0.6, restoring free heap.

close #5630
close #5474
close #5699
close #5697

@SuGlider SuGlider self-assigned this Oct 21, 2021
me-no-dev pushed a commit to espressif/esp32-arduino-lib-builder that referenced this pull request Oct 21, 2021
on commit deacf43

sdkconfig modifications to build libraries with compile optimization to size (-Os)
keep all the bootloaders with -Os and no boot messages
changes max number of sockets from 10 to 16
disables LWIP "Experimental PPP and SLIP" because it adds about 60K to the binary size and it's not used in Arduino
on commit a133257

sets WIFI LWIP to try first to allocate from SPIRAM on esp32 (this is esp32s2 default configuration)
defines SPIRAM_MALLOC_ALWAYSINTERNAL to 4096 bytes on esp32 (same as default for esp32s2)
disables SPIRAM_MALLOC_RESERVE_INTERNAL on both esp32 and esp32s2 to release more RAM to heap
Related PRs in Arduino-ESP32:
espressif/arduino-esp32#5789
espressif/arduino-esp32#5791

Related issue:
espressif/arduino-esp32#5699
espressif/arduino-esp32#5474
espressif/arduino-esp32#5630
espressif/arduino-esp32#5751
@me-no-dev me-no-dev merged commit 67c9914 into espressif:master Oct 21, 2021
ewpa pushed a commit to ewpa/arduino-esp32 that referenced this pull request Nov 15, 2021
…pressif#5791)

Summary

Modifies WiFi lib to allow dynamic buffer allocation along with SPIRAM MALLOC enabled
This gives more heap space to the users

Related PR in Arduino Lib Builder: espressif/esp32-arduino-lib-builder#47

Impact

WiFi will work the same as it was in version 1.0.6, restoring free heap.

close espressif#5630
close espressif#5474
close espressif#5699
close espressif#5697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment