error allocating memory in PSRAM
Posted: Wed Mar 05, 2025 12:37 pm
Hello,
I have tried to allocate memory in PSRAM. I have activated the PSRAM and I have 8MB. Now calling the function
returned NULL and the error. What is the problem ?
I have tried to allocate memory in PSRAM. I have activated the PSRAM and I have 8MB. Now calling the function
Code: Select all
void* psramBuffer = heap_caps_malloc(65536*2, MALLOC_CAP_SPIRAM);
if (psramBuffer == NULL) {
ESP_LOGE(TAG, "Error allocating memory in PSRAM.");
}