As per title, I’ve been trying to figure out how to get LVGL to use the PSRAM on my esp32-wrover, but after hours of searching, I can’t seem to find any articles or advice on how to accomplish it!
what do u want to store in external psram? videobuffer? objects?
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/external-ram.html
check this link.
there is 2 solutions i think that would work
setup memory mapping for entire esp32 (as described in espressif appnote)
add some sort of HAL that will use ur custom alloc,malloc methods and will handle read write operations from/to external ram and force lvgl to use them by defining them in configuration file.
on latter version of the ESP32 like the ESP32-S3 the SPIRAM is also DMAable. so using the following you can direct what memory the frame buffers should use
DMA that is available anywhere: MALLOC_CAP.DMA
DMA in spi ram: MALLOC_CAP.DMA | MALLOC_CAP.SPIRAM
DMA in internal ram: MALLOC_CAP.DMA | MALLOC_CAP.INTERNAL