LPC5410x : DMA RELOAD 'self'?

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC5410x : DMA RELOAD 'self'?

310 Views
ColdfireFan
Contributor III

When setting up a DMA channel descriptor, is there any reason that you cannot use the 'next' field of the descriptor to point back to itself so that the descriptor reloads itself every time it is exhausted? Is this the recommended way to achieve this type of 'self reloading' behavior?

For example:

DMA_CHDESC_T dmaDesc;
...
dmaDesc.next = DMA_ADDR(&dmaDesc);
0 Kudos
1 Reply

298 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @ColdfireFan,

I think a better approach for this is using a ping-pong transfer. For more information about this check the 12.5.4  section of the reference manual and the following community post.

Best Regards,

Alexis Andalon

0 Kudos