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.");
}