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.

6670 aif 2 example

Hello,

I have been trying to build and run an aif2 example project using the example source codes that are provided with the MCSDK. The source code is Aif2_Cpri_Generic_Packet_Test.c and the loopback path is enabled in the source code. However, the packets are not transferred and the code stays in the while loop below.

while (hostRxCount < 8)
{
// Get current descriptor count for host RX queue
hostRxCount = get_descriptor_count(HOST_RX_Q);
if (hostRxCount != 0)
printf(" Number of monolithic packets received in RX queue: %d\n", hostRxCount);
}

Thanks in advance.
ilke
  • Hello,

     

    I just ran this test with SerDes loopback enabled on my hardware and achieved a successfull pass. Are you sourcing all of your include files directly from the MCSDK?

    Does the problem lie on the transmit side or receive side? Are your transmit descriptors being processed (that is, are they being automatically popped off the transmit descriptor queue)?

    You can check the fields in the EE AD Raw Status register (0x01F04200) for starters to get an idea of whether the DMA engine is actually sending/receiving data.

    Regards,

    Sahil

  • Hi Sahil,

    I suspect the problem is related to my hardware, because I managed to make it run for a few times after restarting the DSP. This might be a PLL related issue in my opinion, but I will check the registers if the DMA is functioning properly. Thanks for your help.

    Regards,

    ilke