Skip to content

Increase in HEAP usage on 2.0.11 (framework 4.4.5) #8482

Closed
@stuartpittaway

Description

@stuartpittaway

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 calls heap_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

platform_packages =
   framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.9

RAM:   [==        ]  19.6% (used 64192 bytes from 327680 bytes)
Flash: [========= ]  90.5% (used 1601337 bytes from 1769472 bytes)

SDK Version: v4.4.4
Min free Heap: 90612
Free heap: 114728
Heap size: 291396

On 2.0.11

platform_packages =
   framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.11

RAM:   [==        ]  19.5% (used 63812 bytes from 327680 bytes)
Flash: [========= ]  90.7% (used 1604529 bytes from 1769472 bytes)

SDK Version: v4.4.5
Min free Heap: 61776
Free heap: 78944
Heap size: 256136

Sketch

ESP.getMinFreeHeap();

Debug Message

No debug message

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions