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: How to receive for csirx IRQ interrupt with csirx drv or tiovx api?

Part Number: TDA4VM


Hi, Ti expert.

I'd like to receive the frame start timing of video with an irq(CSI_RX_IF_VBUS2APB_MONITOR_IRQ) handler.

So, I want to use csirx drv or tiovx api. 

Does csirx drv and tiovx api have interfaces to do this?
Or is there another way?

Additionally, CSI_RX_IF_VBUS2APB_MONITOR_IRQ can be received via which of the following IRQs?

 

  • Hi, 

    In the csirx driver, you could find the ISR CsirxDrc_errorEventIsrFxn() in ${PDK_PATH}/packages/ti/drv/csirx/src/csirx_event.c

    In the TIOVX, this is registered as shown below in tivxCaptureCreate() present at tiovx/kernels_j7/hwa/capture/vx_capture_target.c

    If you see below in the Csirx_eventPrmsInit(), eventPrms.eventCb = NULL.

    Here you could add your callback function to this instead of NULL and get the callback once the ISR is called.

    Regards,

    Nikhil

  • Thank you. Nikhil

    Isn't the code you provided an error checking function related to CSI_RX_IFi_CSI_ERR_IRQ_0?
    We want to read the CSI_RX_IF_VBUS2APB_MONITOR_IRQ register or receive an interrupt.

    Do we need to change the driver code for this? 
    Is there any other way besides this? we don't want to touch the driver code.

  • Hi Kim,

    Monitor module is not really supported in the CSIRX driver, so currently not possible to get the start of frame interrupt.

    Btw, how many camera are you trying to capture? for which camera(s), do you require this module to be enabled? 

    Regards,

    Brijesh

  • hi 

    we use 4 cameras.

    If we are not using CSIRX driver, Is there another way?

  • Well, you can directly write to registers to get this interrupt, but if i recollect, monitor module can support only one camera. Please refer to TRM for more information. 

    Regards,

    Brijesh

  • Thank you.

    we just need to know the starting frame timing of one camera.

    And we have one more question.

    CSI_RX_IF_VBUS2APB_MONITOR_IRQ can be received via which of the following IRQs?

    CSI_RX_IF_VBUS2APB_ERROR_IRQS is SI_RX_IFi_CSI_ERR_IRQ_0?

    CSI_RX_IF_VBUS2APB_INFO_IRQS?

  • Hi,

    we just need to know the starting frame timing of one camera.

    Currently, we get a dma callback during frame completion. This can be supported for multiple cameras too. May I know if you could use this interrupt instead of the start frame timing?
    As completion callback of frame could be taken as start of next frame.

    Regards,

    Nikhil