cancel
Showing results for 
Search instead for 
Did you mean: 

GPDMA with linked list for big buffers

Rickou73
Associate II

Hello !

I'm using STM32U5A5 on my custom board.

i would like to configure a very big buffer to store lots of ADC samples (60sec circular audio buffer)

i check the GPDMA is limited to 64kB

I tryed a small test using the linked list to do a small test using 2 nodes related to 2 64kB chunk of data.

 

It seems it works fine, but is there a way to know at the half or complete callback which buffer is full ?

or which list node is related ?

 

thank for help

 

2 REPLIES 2
OOUAD
ST Employee

Hello Rickou73,

Try to configure pNodeConfig.TransferEventMode to DMA_TCEM_EACH_LL_ITEM_TRANSFER for each node configuration. This will generate a  GPDMA_CHx_TC interrupt whenever a node completes its transfer.

 

BRs,
Oussema.

moylando
Associate II

Sorry Rickou73, I'm not much help with your issue, but was wondering if you had any tricks to getting the GPDMA transfer to write the data into RAM.  I've been struggling with it and can get ADC samples but they don't seem to get copied to the buffer location.