Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

McASP AFIFO-EDMA not working for rx

$
0
0

Hi everyone:

I'm working with the OMAP-L137/TMS320C6747 Floating Point Starter Kit from Spectrum Digital. The board has an TLV320AIC3106 Stereo Codec controlled via the McASP. I was transmitting and receiving audio samples via the DMA one at a time, but some events were missed and I was losing some samples.

My solution was to enable the AFIFO in the McASP but I'm only able to do it with the transmission part. In the read part no DMA event is generated. I followed the reference manual and did the same for both write and read FIFO. When I check the AFIFO register, both WFIFOCTL and RFIFOCTL have the right values, but only tx is working. My partial solution is to disable the rx FIFO, but I lose samples from time to time (less often than before).

It is important to note that everything works fine when I don't use any of the FIFO and when I only use the write FIFO. So DMA events are triggered in all cases except when the read FIFO is enabled. When I check the RFIFOSTS register, the value is 40, so the FIFO is getting full but the DMA is not recognizing the event, wihich should be triggered when there is at least one sample.

I've already checked all the usuals: reads are performed through the DMA port, the event is correctly associated in the DMA...

Has anyone experienced something similar?


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>