Hi. I'm writing a program which will do a loopback test of codec AIC3106 on OMAP-L137 EVM. I use EDMA to receive data from McASP to the memory and then play back. At first I disabled the McASP transmitting event(AXEVT) in EDMA but made AREVT enabled. Then I started the McASP's clock. The receiving is OK, I can see EDMA tranferring data from McASP to memory. After all the data are transferred, I tried to play back through EDMA by enabling AXEVT. But this step was not working.
If I enabled AXEVT before McASP's clock was running. The transmission is working, but EDMA will transfer data to McASP before when I want it to.
I'm using the synchronous transmit/receive operation in McASP. (ACLKXCTL.ASYNC=0) I tried to use asynchronous mode, but I cannot receive data in this mode.
How can I control the start and stop of EDMA transmission with McASP's clock running?