Hi,
I am using DM6437 as processor, and PSP_1_10_03 as PSP package.
After I enabled PSP_VIDEO_PATH_ENABLE in psp_vpfe driver, I was able to run both histogram and previewer engines.
However, in my case, I want the CCDC to output raw Bayer image to DDR RAM, and then after processing, I want to use previewer engine to generate YUV422 image. Therefore, I need to configure the previewer in one-shot mode and its source is SDRAM.
If PSP_VIDEO_PATH_ENABLE is disabled, the previewer engine works perfectly.
However, when PSP_VIDEO_PATH_ENABLE is enabled (so that I can use Histogram and H3A engines), GIO_control(prevHandle, PSP_PREVIEWER_IOCTL_PREVIEW, &taskPreviewParams) function returns TIMEOUT error after it runs successfully for about a number of frames (sometime 6 frames, sometime 10 frames, etc.). Note: the function works for the first few calls.
I traced the driver, and found that the previewer engine stops because the previewer is stuck at BUSY state. (The ONESHOT, SOURCE and ENABLE bits are all '0').
Can anyone tell me what goes wrong with previewer engine, and how I can re-activate it when it is stuck at BUSY state?
Thanks.
Alan