AnsweredAssumed Answered

PVP problem on BF609

Question asked by lawrence.guan@liteon.com on Nov 21, 2016
Latest reply on Jan 11, 2017 by Jithul_Janardhanan

Hi, Everybody:

 

I use the PVP - Convolution function on BF609 platform , it can work in ICE mode, but can't work in Flash mode. In Flash mode, gNumProcessedFrames always is 0.

 

while((gNumProcessedFrames < 1))
{

/* Wait until test frame is processed.*/

}

 

I monitor the callback function, in ICE mode , i can see PipeCallback, CONVInStreamCallback, CONVOutStreamCallback executed, but in Flash mode , i only see PipeCallback executed.

 

static void PipeCallback(void *pCBParam,ADI_PVP_EVENT eEvent,void *pArg)
{

      /* Handle the events */
      switch(eEvent)
      {
         case ADI_PVP_EVENT_CONFIG_PROCESSED:
            LTCPrintf("G-P\n");
            break;
         default:
         /* We are not expecting any PVP pipe related events. It should be an error */
            LTCPrintf("Unexpected PVP Pipe related event");
            break;
}


   return;
}

 

static void CONVInStreamCallback(void *pCBParam,ADI_PVP_EVENT eEvent,void *pArg)
{
      /* Handle stream related events here */
      switch(eEvent)
      {
            case ADI_PVP_EVENT_BUFFER_PROCESSED:
               //printf("CONVInStreamCallback in \n");
               LTCPrintf("G-I\n");
               break;
            default:

               break;
        }

         return;
}

 

 

static void CONVOutStreamCallback(void *pCBParam,ADI_PVP_EVENT eEvent,void *pArg)
{
      /* Handle stream related events here */
      switch(eEvent)
      {
            case ADI_PVP_EVENT_BUFFER_PROCESSED:
               /* Each test will be waiting for this event */

               LTCPrintf("G-O\n");
               gNumProcessedFrames++;
               break;

            default:
            LTCPrintf("Unexpected event received in CONV Output Stream related callback\n");
            break;
      }

      return;
}

 

So, why use ICE download the code in BF609 platfom , PVP can work , but Flash mode can't??

 

Thanks.

Outcomes