Getting CY_U3P_ERROR_TIMEOUT from CyU3PDmaMultiChannelGetBuffer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

We are getting time out error from CyU3PDmaMultiChannelGetBuffer. How an we debug this problem?

   

 

   

The hardware platform is FX3.

   

 

   

Thanks,

   

David

0 Likes
1 Reply
Anonymous
Not applicable

1) Please check the error code which is returned by CyU3PDmaMultiChannelGetBuffer (I see you already mentioned timeout).  Where are you using this CyU3PDmaMultiChannelGetBuffer, have you made sure that there is a buffer available before you do so? You do call this in the DMA callback function. 

   

2) Also,  please register for PIB callback using the following. You can refer AN75779 firmware example to see how to enable PIB callback. 

   

     CyU3PPibRegisterCallback (CyFxUvcAppPibCallback, CYU3P_PIB_INTR_ERROR);

   

--------------------------------------------------------------------------------------------

   

static void CyFxUvcAppPibCallback (
        CyU3PPibIntrType cbType,
        uint16_t cbArg)
{
    if ((cbType == CYU3P_PIB_INTR_ERROR) && ((cbArg == 0x1005) || (cbArg == 0x1006)))
    {
        if (!back_flow_detected)
        {
            CyU3PDebugPrint (4, "Backflow detected...\r\n");
            back_flow_detected = 1;
        }
    }
}

   

--------------------------------------------------------------------------------------------------------------------

   

I see you have not described much about your application, it will be good if you can attach your firmware

0 Likes