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.

Encode/Encodedecode Demo dos not work on dm6467

Other Parts Discussed in Thread: TVP5147

Hello,

I am testing my DM6467t EVM board with the demos in the DVSDK (Version: 3.10.00.19). Howerver, the images just can't come out, and I can't find any error or warning message in the serial console. When I'm running the Encode Demo, the file to save video data is always empty. And when I'm running the Encode Decode Demo, there's no video image on the display device.

So I added much debug info in the TVP5147 driver and the vpif_capture driver. Then I found that when the demo runs for the first time, it dosn't get into the TVP5147 driver code and it works OK from the second time on(still no image). Then I checked all the registers in TVP5147 and VPIF. I still didn't find any error except that  I was wondering that the CH0_IMG_ADD_OFST should be set as 0x2d0 while it was 0x5a0 in the demos(The video standard I'm using is PAL D1). 

Then I wrote some testing codes(using V4L2) to check whether the VPIF is OK. And I found that my test programm can't work for the fisrt time either, and all the registers are the same as the demos. However, my test programm can save video frames stored by VPIF in the DDR2(whit green/pink color artifact and black edges).

In fact, the demos worked normally for once in last december. After a period of time, it just couldn't work. I don't think I did any changes in the kernel or the demo codes.

Below is some info output in the serial console:

VPIF_CH0_CTRL:0x000000a9
VPIF_CH1_CTRL:0x00000081
VPIF_CH2_CTRL:0x0000648b
VPIF_CH3_CTRL:0x00000000
VPIF_INTEN:0x00000017
VPIF_INTEN_SET:0x00000017
VPIF_INTEN_CLR:0x00000000
VPIF_STATUS:0x00000005
VPIF_STATUS_CLR:0x00000000
VPIF_REQ_SIZE:0x00000080
VPIF_CH0_TOP_STRT_ADD_LUMA:0x857ca000
VPIF_CH0_BTM_STRT_ADD_LUMA:0x857ca2d0
VPIF_CH0_TOP_STRT_ADD_CHROMA:0x8582f400
VPIF_CH0_BTM_STRT_ADD_CHROMA:0x8582f6d0
VPIF_CH0_SP_CFG:0x00000000
VPIF_CH0_IMG_ADD_OFST:0x000005a0
VPIF_CH0_H_CFG:0x011805a0
VPIF_CH0_V_CFG_00:0x00010017
VPIF_CH0_V_CFG_01:0x01370139
VPIF_CH0_V_CFG_02:0x01500270
VPIF_CH0_V_CFG_03:0x00000271
Encode Decode demo ARM Load: 5% DSP Load: 100% Display Type: D1 PAL Video Codec: H.264 BP Video fps: 0 fps Video bit rate: 0 kbps Video resolution: 720x576 Time: 00:00:01
Encode Decode demo ARM Load: 0% DSP Load: 76% Display Type: D1 PAL Video Codec: H.264 BP Video fps: 0 fps Video bit rate: 0 kbps Video resolution: 720x576 Time: 00:00:02

Everything is all right.  I can't get any prompt to modify the codes. This is quite frustrating.

I am really depressed c'ause I've been working on this for more than one week. If anyone can give some useful suggestions, that is great kindness to me and I'll appreciate it very much.

Thanks in advance......

Michael.