Skip to content

How to increase heap size by reducing dynamic memory size? #3031

@ericmnel

Description

@ericmnel

Basic Info

Hardware

Hardware: Wroom-02
Core Version: 2.3.0

Description

I'm running out of heap, and would like to move 5k of memory from "dynamic memory" to heap maybe by changing the memory boundaries or something, i.e. the dynamic memory referred to by the compile message:

"Sketch uses 374,909 bytes (35%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 48,364 bytes (59%) of dynamic memory, leaving 33,556 bytes for local variables. Maximum is 81,920 bytes."

Is there any way to do this?

Settings in IDE

Module: Wroom-02
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: dio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions