Skip to main content
Visitor II
April 10, 2023
Solved

GPDMA, UART transmit using LL library?

  • April 10, 2023
  • 5 replies
  • 3967 views

Hi,

 Is there a LL Library project example or at least a code snippet of how to transmit uart data using the GPDMA?

    This topic has been closed for replies.
    Best answer by Foued_KH

    Hello @Community member​ ,

    I reported your request internally.

    Internal ticket number: 140709 (This is an internal tracking number and is not accessible or usable by customers).

    Foued

    5 replies

    Technical Moderator
    April 11, 2023

    Hello @Community member​,

    You may need to specify STM32 product. Here is an example on how to use the MDMA triggered by GP-DMA using HAL;

    STM32CubeH7/Projects/STM32H743I-EVAL/Examples/MDMA/MDMA_GPDMA_Triggering at c94252df7cec24a8fef67b28933353476a1edd3c · STMicroelectronics/STM32CubeH7 (github.com)

    Hope this helps!

    AsantosAuthor
    Visitor II
    April 11, 2023

    Hi F.Belaid,

    GPDMA is ST's new DMA that is currently only available on the new STM32U5 and STM32H5. I'm using the NUCLEO-H563ZI board, but examples for the STM32U5 would also do. And I need low-level examples, using the LL Library or register-level, of how to use this new DMA.

    ST Employee
    April 11, 2023

    Actually, There are no available examples for the UART with GPDMA in the CubeFW for the STM32H5 using LL .

    I recommend you check this section 16 General purpose direct memory access controller (GPDMA) in the Reference Manual : STM32H563/H573 and STM32H562 Arm<Sup>®</Sup>-based 32-bit MCUs - Reference manual

    Foued

    AsantosAuthor
    Visitor II
    April 11, 2023

    Hi,

    I just don't understand how ST releases a new DMA, and doesn't post any code examples on how to use it. There's no way to do this from scratch just based on the reference manual. And the code that transmits over DMA using the HAL is incredibly inefficient. If I transmit a few bytes, the process of the function takes longer than the transmission itself. So I think ST should release code examples on how to use GPDMA with UART, SPI, ADC, etc. In normal mode and using the LL Library. This way it is easier for us to migrate applications from the previous STM32 to the new H5 while maintaining performance.

    Foued_KHAnswer
    ST Employee
    April 13, 2023

    Hello @Community member​ ,

    I reported your request internally.

    Internal ticket number: 140709 (This is an internal tracking number and is not accessible or usable by customers).

    Foued

    Visitor II
    September 3, 2025

    Hello Together, 

    are there any new to this topic? 

    Visitor II
    October 20, 2025

    Any updates on any non-HAL examples?  Also struggling to migrate from L5 to new H5 GPDMA and linked lists.