Skip to main content
Asantos
Associate III
Apr 10, 2023 10:36 PM UTC
Solved

GPDMA, UART transmit using LL library?

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.
Foued_KH
Foued_KHBest answer
ST Employee
Apr 13, 2023 2:13 PM UTC

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

9 replies

ST Technical Moderator
Apr 11, 2023 8:38 AM UTC

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!

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Asantos
AsantosAuthor
Associate III
Apr 11, 2023 10:00 AM UTC

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.

Foued_KH
ST Employee
Apr 11, 2023 10:50 AM UTC

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Asantos
AsantosAuthor
Associate III
Apr 11, 2023 12:02 PM UTC

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_KH
Foued_KHBest answer
ST Employee
Apr 13, 2023 2:13 PM UTC

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Visitor II
Sep 3, 2025 8:50 AM UTC

Hello Together, 

are there any new to this topic? 

Associate
Oct 20, 2025 2:14 PM UTC

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