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.

TDA4VM: Handling exception during capture timeout

Part Number: TDA4VM


We are currently using PDSK 7.1 with QNX OS, we have a requirement where we need to notify the application when there is a timeout in capture node. We wanted to know how to handle the exception in capture node when there is a time out.

We have referred the following file,

PSDK7.1/tiovx/kernels_j7/hwa/capture/vx_capture_target.c

status |= tivxCaptureTimeout(prms);

if (status != VX_SUCCESS)
{
   if(1U == prms->enableErrorFrameTimeout)
   {
        //Handle exception

   }

}

Can you please suggest a way of handling the exception when there is a timeout. Thanks in advance.

  • Well, the example is running on the A core and Capture node on R code, so we cannot register direct exception handler. 

    One possible way, you could probably register for error even using vxRegisterEvent and then wait for the event in the another task, please refer to ti-processor-sdk-rtos-j721e-evm-08_01_00_13\tiovx\kernels_j7\hwa\test\test_capture.c for more information. 

    Regards,

    Brijesh

  • Thank you for suggesting us vxRegisterEvent for handling exception during capture timeout.
    We have successfully used vxRegisterEvent in our application by referring ti-processor-sdk-rtos-j721e-evm-08_01_00_13\tiovx\kernels_j7\hwa\test\test_capture.c as example.
     
    Currently we are testing for two cases:
    1. Camera disconnected before starting the application.
    2. Camera disconnected after capture has started in application. 
    We are able to get event notification for an error in capture node for the case 2 but we are not getting any event notification for case 1.
     
    Is there any way we can get event notification for the case 1?
  • Camera disconnected before starting the application.

    Can you see if some SERDES error/status registers helps in this case? 

    Regards,

    Brijesh