-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Increase in HEAP usage on 2.0.11 (framework 4.4.5) #8482
Comments
Confirmed. Using this code: Serial.printf("Total Heap Size: %d\n",ESP.getHeapSize());
Serial.printf("Available Heap: %d\n",ESP.getFreeHeap());
Serial.printf("Lowest level of heap since boot: %d\n",ESP.getMinFreeHeap());
Serial.printf("Largest block of heap that can be allocated at once: %d\n",ESP.getMaxAllocHeap()); All SoC results with empty sketch: C3 with 2.0.11 C3 with 2.0.9 ================================================================ ESP32 with 2.0.9 ================================================================ ESP32S2 with 2.0.9 ================================================================ ESP32S3 with 2.0.9 |
@VojtechBartoska @me-no-dev -- The MIDI issue (#8471) is related to MIDI communication failure (not I2S or DAC) and may be related to lack of HEAP. It seems that we have a number of problems with IDF 4.4.5. |
- Adds 2 status pixels: Red pixel fades at 0,0 when AWTRIX losts the wifi connection. Yellow pixel fades at 0,7 when AWTRIX looses the MQTT connection. - Downgrade ArduinoESP32 framework back to 2.0.9. because 2.0.11 costs 30kb!!! of heap. see espressif/arduino-esp32#8482 - Fixes a bug where "repeat" doesnt work in customapps - Fixes a bug where mqtt /doupdate doesnt work
Great finding!! Tasmota Arduino fork metrics
and for Arduino 3.0
|
Board
ESP32 DEVKITC
Device Description
DEVKITC as used in DIYBMS project https://github.com/stuartpittaway/diyBMSv4/tree/master/ControllerCircuit
Hardware Configuration
Yes, but doesn't make a difference to this issue
Version
other
IDE Name
PlatformIO
Operating System
Win 11
Flash frequency
40Mhz
PSRAM enabled
yes
Upload speed
921000
Description
After upgrading from 2.0.9 release to the 2.0.11 release, the memory heap usage has significantly increased by about 30%
There are no other changes to the code base, except for the re-compile with the new 2.0.11 release.
I've also tested with 2.0.10 and that was worse than 2.0.11 release with Min free Heap reported as 49772.
Values returned by call to
ESP.getMinFreeHeap()
which callsheap_caps_get_minimum_free_size(MALLOC_CAP_INTERNAL)
.This appears to be caused by the change to 4.4.5 SDK and the change in total heap size (291396 to 256136)
On 2.0.9
On 2.0.11
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: