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

PSRAM in M5Stack FIRE #1726

Closed
MhageGH opened this Issue Aug 5, 2018 · 8 comments

Comments

Projects
None yet
3 participants
@MhageGH

MhageGH commented Aug 5, 2018

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

@lbernstone

This comment has been minimized.

Show comment
Hide comment
@lbernstone

lbernstone Aug 5, 2018

Contributor

If you don't have psram on your device, arduino is not going to be able to use it.

Contributor

lbernstone commented Aug 5, 2018

If you don't have psram on your device, arduino is not going to be able to use it.

@MhageGH

This comment has been minimized.

Show comment
Hide comment
@MhageGH

MhageGH Aug 5, 2018

Thanks for comment, lbernstone.
M5Stack FIRE has 4M-PSRAM.

MhageGH commented Aug 5, 2018

Thanks for comment, lbernstone.
M5Stack FIRE has 4M-PSRAM.

@lbernstone

This comment has been minimized.

Show comment
Hide comment
@lbernstone

lbernstone Aug 6, 2018

Contributor

If you turn core debugging level to verbose do you see that psramInit succeeds? I am waiting on my wrover board, so I can't help much there at the moment.

Contributor

lbernstone commented Aug 6, 2018

If you turn core debugging level to verbose do you see that psramInit succeeds? I am waiting on my wrover board, so I can't help much there at the moment.

@MhageGH

This comment has been minimized.

Show comment
Hide comment
@MhageGH

MhageGH Aug 6, 2018

Thanks. I tried. I see that paramInit failed. I get below error message.
[W][esp32-hal-psram.c:30] psramInit(): PSRAM init failed!

By the way, someone told me that I should try to cut UART2 PINs because they are share with wires to PSRAM in this board. I tried, but it didn't work. I got the same error massage.

MhageGH commented Aug 6, 2018

Thanks. I tried. I see that paramInit failed. I get below error message.
[W][esp32-hal-psram.c:30] psramInit(): PSRAM init failed!

By the way, someone told me that I should try to cut UART2 PINs because they are share with wires to PSRAM in this board. I tried, but it didn't work. I got the same error massage.

@MhageGH

This comment has been minimized.

Show comment
Hide comment
@MhageGH

MhageGH Aug 7, 2018

Someone told me that I should try to connect UART2 PINs to GND with 240Ω. I tried, but it didn't work. I got the same error massage.
dsc_0031

MhageGH commented Aug 7, 2018

Someone told me that I should try to connect UART2 PINs to GND with 240Ω. I tried, but it didn't work. I got the same error massage.
dsc_0031

@manecolooper

This comment has been minimized.

Show comment
Hide comment
@manecolooper

manecolooper Aug 15, 2018

Hi, tested that sketch in esp wrover module and it Works, ps_malloc succeeded

manecolooper commented Aug 15, 2018

Hi, tested that sketch in esp wrover module and it Works, ps_malloc succeeded

@MhageGH

This comment has been minimized.

Show comment
Hide comment
@MhageGH

MhageGH Aug 16, 2018

Thank you, manecolooper.
M5Stack Inc. announced psram issue of M5Stack FIRE.
They will start the replacement service for it.

MhageGH commented Aug 16, 2018

Thank you, manecolooper.
M5Stack Inc. announced psram issue of M5Stack FIRE.
They will start the replacement service for it.

@lbernstone

This comment has been minimized.

Show comment
Hide comment
@lbernstone

lbernstone Aug 16, 2018

Contributor

Can you please close the issue, then?

Contributor

lbernstone commented Aug 16, 2018

Can you please close the issue, then?

@MhageGH MhageGH closed this Aug 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment