Hello everyone,
I'm facing a problem when I try to use the PSRAM of an ESP32-WROVER-B.
I'm using the mp3 pipeline example in my own code.
Everything works fine when I disable SPI RAM in menuconfig, but when I enable it (with or without malloc support), my code fails when calling heap_caps_malloc in the adf code. When it does, the esp panic's and does a reset.
Does anyone have had the same problem and know a solution?
I'm stuck here as I'll need the extra RAM space to be able to run my application.
(I can't share my code, as it is for my company, but it works without PSRAM)
Kind regards
Laurens
[SOLVED] Problem when using PSRAM
[SOLVED] Problem when using PSRAM
Last edited by l.wuyts on Fri Mar 26, 2021 9:32 am, edited 2 times in total.
Re: Problem when using PSRAM
Hi.
Have you tried "malloc()" function?
Manual says that: For most purposes, the standard libc malloc() and free() functions can be used for heap allocation without any special consideration.
Have you tried "malloc()" function?
Manual says that: For most purposes, the standard libc malloc() and free() functions can be used for heap allocation without any special consideration.
Re: Problem when using PSRAM
Hello,
I have not changed any code, because this was code in the adf components from Espressif themselves.
Kind regards
Laurens
I have not changed any code, because this was code in the adf components from Espressif themselves.
Kind regards
Laurens
-
- Posts: 9723
- Joined: Thu Nov 26, 2015 4:08 am
Re: Problem when using PSRAM
Hard to say. Does your backtrace indicates why the crash is? Also, are you 100% sure you don't reconfigure the pins the PSRAM is connected to? (Especially GPIO16/17).
Re: Problem when using PSRAM
Thank you very much! I checked my code for a usage of GPIO 16/17, and I found that from some previous project, a uart was configured on these pins.
The problem is now fixed, thanks again!
The problem is now fixed, thanks again!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 328 guests