This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM57: Circular buffer with DMA

Other Parts Discussed in Thread: RM57L843

Hi,

This is for an RM57L843. I saw a couple posts with e2e on Hercules circular buffers with DMA and will review those. But I wanted to post the specific question from a customer:

We were unable to configure the DMA so that it fills a circular buffer that we occasionally drained.  The attempt we made was to read the CTCOUNT register when we were ready and drain the buffer, but because CTCOUNT isn't updated until the DMA is arbitrated out of the priority queue, this didn't appear to work. Is there a way to use this DMA in this fashion? Maybe a way to force an update of CTCOUNT without interrupting an in-progress DMA transfer?

Is there a better way of doing this with the DMA?

 

Thanks,

--Gunter