cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H5 GPDMA Linked list example without HAL

tbennett
Visitor

I am trying to implement a GPDMA driver in a C project that does not use HAL, and have been really struggling to get something working. I have read everything I can find on this peripheral, multiple times, and still don't quite understand how one would configure the registers without using HAL.

 

The goal is to get circular DMA transfers from peripheral to memory (e.g. ADC to memory). The H5 reference manual gives this figure, which conceptually makes sense to me but I can't figure out the implementation.

tbennett_0-1746647568608.png

It seems like it should be relatively simple to setup in C with direct register access instead of HAL configuration structures, but I have not been able to find any examples online or in documentation. I am wondering if anyone has gotten a linked list GPDMA transfer working without having CubeMX + HAL do all the work?

1 REPLY 1

HAL is just taking stuff out of its structures, and putting it into the registers - so follow through the process that HAL does...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.