Skip to content

When ESP32 creates new instance object , how to create by PSRAM first instead of HEAP mem? #3269

@TridentTD

Description

@TridentTD

Hardware:

Board: ESP32 board
Core Installation/update date: 1.0.2
IDE name: Arduino IDE
Flash Frequency: 80Mhz
PSRAM enabled: Yes
Upload Speed: 921600
Computer OS: Windows 10

Description:

When ESP32 that come with PSRAM
creates new instance object. Like this

class TestClass {
   public:
      TestClass() { Serial.println("Constuction"); }
};

TestClass *pTest = new TestClass();

How the ESP32 can create new instance object by allocation on PSRAM first,
instead of allocation on HEAP mem first?

Thank you.

Sketch:

Debug Messages:

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