Start and setting DMA2D


Hello, I’m new in using LVGL and new to the embedded world.
I have managed to run LVGL using DMA and using “Regular” transfer like this: Flash**->OctaSPIDMA2D/DMA/OnebyOneFMC->**LCD.

I have enabled the needed macro but is not clear to me how to continue from here.
I saw this interesting folder lvgl\src\draw\stm32_dma2d. what do I need to do with those files? and how I enable them. and what are the steps I need to make it successful?

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


What LVGL version are you using?


What do you want to achieve?

Using DMA2D the correct way.

What have you tried so far?

I have set the needed macro like this:

/*Use STM32's DMA2D (aka Chrom Art) GPU*/
#define LV_USE_GPU_STM32_DMA2D 1
    /*Must be defined to include path of CMSIS header of target processor
    e.g. "stm32f7xx.h" or "stm32f4xx.h"*/
    #define LV_GPU_DMA2D_CMSIS_INCLUDE "stm32h723xx.h"


1 Like