Hi,
I am trying to configure McASP0 on a C6746 device in 16 channel TDM mode. I am currently just trying to configure audio input. I am using the BIOS PSP McASP driver for this (iospsp_03_00_01_00).
This release is targeted at the C6748, but I believe that this should port to the C6746 without any software changes needed?
I am receiving digital audio directly to the McASP, no codec involved.
I used the BIOS PSP sample application as a starting point, having removed the AIC31 and I2s related parts of this application. When I run the application, I have stepped through all of the GIO and McASP initialisation, all of which succeeds and all McASP registers look correct.
Currently, what happens when I run the application is that it hangs at this call within the audio loop:
/* Reclaim full buffer from the input stream */
status = GIO_reclaim(inStream, (Ptr *)&rcv, NULL, NULL);
I believe that this is happening because the RDATA flag in the RSTAT register is not toggling. I have placed breakpoints in all receive related functions in the McASP driver code; specifically, I should see this function being called: Mcasp_localEdmaCallback(), but I never hit this function and am stuck in the idle loop.
I can see that on the PDIN register, expected activity on all of the clock pins and serializer 0 data pin (where I am trying to read 16 channels of audio in).
I have also tried to check the RBUF0 register to see if data is getting this far, but I never see anything here. I have a Logic PD experimenter EVM, so I have run the application in burst mode, but I could not see anything in RBUF in CCS while running this (despite seeing audio in the buffers and hearing on output), so I can't be sure that audio is not getting from the shift register into RBUF on my C6746 setup.
I am have spent some time at this and, currently, cannot think how to debug the issue any further. Is there a way of checking if data is being clocked into the serializer shift register and/or receive buffer (RBUF)?
Any ideas audio data would not get clocked into RBUF?
Thanks
Brian