Skip to main content
Explorer
July 31, 2024
Solved

DMA2D with SPI in STM32L4P5RG

  • July 31, 2024
  • 2 replies
  • 1092 views

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?

    This topic has been closed for replies.
    Best answer by Mohammad MORADI ESFAHANIASL

    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,

    2 replies

    Explorer
    August 5, 2024

    Hi @Mohammad MORADI ESFAHANIASL 

    Could you confirm it for me?

    ST Employee
    August 6, 2024

    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,

    Explorer
    August 9, 2024

    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.