cancel
Showing results for 
Search instead for 
Did you mean: 

DMA2D with SPI in STM32L4P5RG

Hi 

I want to improve the FPS of TFT when using SPI interface.

I use SPI+DMA+QuadSPI PSRAM+QuadSPI Flash for now.

I notice STM32L4P5RG has DMA2D.

So can it use for SPI interface?

Will it have any improvement when I refresh TFT?

If it has, how to use it?

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Zhou JianQiang,

If you are using TouchGFX, then you can just enable DMA2D and TouchGFX will automatically utilize it. However, I doubt it that you can use DMA2D to directly write to SPI. I haven't tried it so, I cannot say for sure. 
You can read about the process of enabling DMA2D for TouchGFX here.

 Best regards,

Mohammad MORADI
ST Software Developer | TouchGFX

View solution in original post

3 REPLIES 3

Hi @Mohammad MORADI ESFAHANIASL 

Could you confirm it for me?

Hello @Zhou JianQiang,

If you are using TouchGFX, then you can just enable DMA2D and TouchGFX will automatically utilize it. However, I doubt it that you can use DMA2D to directly write to SPI. I haven't tried it so, I cannot say for sure. 
You can read about the process of enabling DMA2D for TouchGFX here.

 Best regards,

Mohammad MORADI
ST Software Developer | TouchGFX

Hi :

As Mohammad MORADI ESFAHANIASL and replied from LVGL:

https://github.com/lvgl/lvgl/issues/5555#issuecomment-2275154739

Maybe we can use DMA2D with SPI.

but I don't try yet.