Skip to content

PSRAM in M5Stack FIRE #1726

@MhageGH

Description

@MhageGH

Hardware:

Board: M5Stack FIRE
Core Installation/update date: 4/Aug/2018
IDE name: Arduino IDE
Flash Frequency: no menu for M5Stack FIRE
Upload Speed: 921600
PSRAM: Enabled

Description:

I can't allocate PSRAM by ps_malloc().
On the other hand, I can allocate internal RAM by malloc().
I tried with two hardware. Same problem happened.

Sketch:

const int N = 10;
uint16_t* buf;

void setup(){
Serial.begin(115200);
if (buf = (uint16_t*)ps_malloc(sizeof(uint16_t)*N)) Serial.println("ps_malloc succeeded");
else Serial.println("ps_malloc failed");
}

void loop() {
}

Debug Messages:

ps_malloc failed

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