Where are the PNG decoder buffers located (or any image buffer in general). Need to move its position in RAM


I am running out of RAM on my teensy 4.1 and need to align some image buffers into either DMAMEM or EXTMEM, but in order to do that I need to understand where the buffers are stored for images that are accessed via the SD card.

I have successfully moved my canvas buffer into DMAMEM, but not sure where the buffers are located for images read from an SD… be it jpgs, png’s or BMP’s.

What MCU/Processor/Board and compiler are you using?

Teensy 4.1

What LVGL version are you using?


What do you want to achieve?

Move image buffers to DMAMEM or a QSPI device

What have you tried so far?

Example of canvas to DMA mem:

DMAMEM static uint8_t cbuf[LV_CANVAS_BUF_SIZE_TRUE_COLOR(320, 240)];  //Need to implement the same sort of thing for images read from an SD card

Code to reproduce