1 Reply Latest reply on Feb 1, 2017 10:03 PM by nishanta_46

    Getting CY_U3P_ERROR_TIMEOUT from CyU3PDmaMultiChannelGetBuffer



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




      The hardware platform is FX3.







        • 1. Re: Getting CY_U3P_ERROR_TIMEOUT from CyU3PDmaMultiChannelGetBuffer

          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