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.

Question about Link_api_demo

Other Parts Discussed in Thread: TVP5158

Hi  all,

          I am using DVRRDK3.0 with DM8168EVM. I have run a link_api_demo in the board,but it failed with error below. I don't know why happens this error. Please give me some help. Thanks a lot. The Error was :

 

root@dm816x:~# ./dvr_rdk_demo_link_api.out

 0: SYSTEM: System Common Init in progress !!!

 0: SYSTEM: IPC init in progress !!!

 13: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...

 14: SYSTEM: Creating MsgQ [HOST_MSGQ] ...

 16: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...

 17: SYSTEM: Opening MsgQ [DSP_MSGQ] ...

 18: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...

 18: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...

 19: SYSTEM: Notify register to [DSP] line 0, event 15 ...

 20: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...

 20: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...

 21: SYSTEM: IPC init DONE !!!

 22: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...

 24: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...

 26: SYSTEM: ListElem Shared Addr = 0x2b129080

 27: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...

 29: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...

 31: SYSTEM: ListElem Shared Addr = 0x2b146b80

 32: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...

 34: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...

 36: SYSTEM: ListElem Shared Addr = 0x2b164680

 37: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...

 40: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...

 41: SYSTEM: ListElem Shared Addr = 0x2b184080

 42: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...

 44: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...

 46: SYSTEM: ListElem Shared Addr = 0x2b1a3a80

 65: SYSTEM: System Common Init Done !!!

yinxr TEST, 05-09-am.

 

 ============

 Chain Select

 ============

 

 Current System Settings,

 NSF Mode              : SNF + TNF

 

 1: Multi  CH Capture + NSF     + DEI     + Display           (16CH 4x TVP5158, NTSC, YUV422I )

 2: Multi  CH Src + Enc + Dec + Snk (VideoM3 chain)           (VideoM3 local loopBack)

 3: Multi  CH Cap + NF + Enc + Dec + SW (DEI/H,SC5) + Disp    (16CH Cap+Enc+Dec+Disp, Interlace Enc/Dec)

 4: Multi  CH Cap + NF + DEI/H + Enc + Dec + SW (SC5) + Disp  (16CH Cap+Enc+Dec+Disp, Progressive Enc/Dec)

 

 s: System Settings

 

 x: Exit

 

 Enter Choice: 1

 

 11595: CHAINS  : CPU Revision [ES1.1] !!!

 11595: CHAINS  : Detected [1x SII9233A, 1x SII9134 CZ] Board !!!

 11595: CHAINS  : Base Board Revision [DVR] !!!

 11595: CHAINS  : Daughter Card Revision [DVR] !!!

 

 [host] Set auto detecting video standard mode (y/n): n

 

 [host] Select video standard:

 1: 1920x1080P60

 2: 1920x1080P50

 3: 1920x1080P30

 4: 1920x1080P25

 5: 1920x1080P24

 6: 1920x1080I60

 7: 1920x1080I50

 8: 1280x720P60

 9: 1280x720P50

 10: 1280x720P30

 11: 1280x720P25

 12: 1280x720P24

 13: 720x576P50

 14: 720x576I50

 15: 720x480P60

 16: 720x480I60

 17: WUXGA(1920x1200)60

 18: UXGA+(1600*1200)60

 19: SXGA+(1400*1050)60

 20: WXGA(1360*768)60

 21: SXGA(1280*1024)60

 22: WXGA(1280*768)60

 23: XGA(1024*768)60

 24: SVGA(800*600)60

 25: VGA(640*480)60

1

Display 0: Layout: CHAINS_LAYOUT_2X2_PLUS_4CH

 [m3vpss ]  33629: CAPTURE: Create in progress !!!

 [m3vpss ]  33658: CAPTURE: VIP0 PortA capture mode is [ 8-bit, Pixel-mux Embedded Sync] !!!

 

 

19054:!!!SLAVE CORE [VPSS-M3] DOWN!!!

SystemLink_copySlaveCoreExceptionContext:146

 [m3vpss ]  33744: CAPTURE: VIP0 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!!

 [m3vpss ] Unhandled Exception:

 [m3vpss ] Exception occurred in ThreadType_Task

 [m3vpss ] handle: 0x3eecf928.

 [m3vpss ] stack base: 0x3ef462a0.

 [m3vpss ] stack size: 0x8000.

 [m3vpss ] R0 = 0x4409ad80  R8  = 0x3e8151cc

 [m3vpss ] R1 = 0x3e76d724  R9  = 0x00000000

 [m3vpss ] R2 = 0x00000000  R10 = 0x4409ad88

 [m3vpss ] R3 = 0x4409abcc  R11 = 0x3e730edc

 [m3vpss ] R4 = 0x3e769c40  R12 = 0x00000000

 [m3vpss ] R5 = 0x3e769c44  SP(R13) = 0x3ef4e148

 [m3vpss ] R6 = 0x3e72e170  LR(R14) = 0x00000001

 [m3vpss ] R7 = 0x00000000  PC(R15) = 0x0042e810

 [m3vpss ] PSR = 0x61000000

 [m3vpss ] ICSR = 0x00400803

 [m3vpss ] MMFSR = 0x00

 [m3vpss ] BFSR = 0x04

 [m3vpss ] UFSR = 0x0000

 [m3vpss ] HFSR = 0x40000000

 [m3vpss ] DFSR = 0x00000000

 [m3vpss ] MMAR = 0xe000ed34

 [m3vpss ] BFAR = 0xe000ed38

 [m3vpss ] AFSR = 0x00000000

 [m3vpss ] Terminating Execution...

mmap of [0xbe9e0000:36864]

mmap virt addresss:0x2ab62000

munmap of [0x2ab62000:36864]

SystemLink_copySlaveCoreExceptionContext:153

 

Regards,

XueRui

 

  • Sorry link_api_demos are not supported in RDK 3.0 and will not work. You can use only mcfw_api_demo.

  • Oh, I'm a little disappointed. Thanks.

    Is there any new version of RDK  support the link_api_demos ? Which one?

  • Hi Badri ,

        When I run the mcfw_api_demos, there was error below which is similar to the link_api_demos. Is the hardware board(3rd party provided) has issue ?

     

     

    root@dm816x:~# ./dvr_rdk_demo_mcfw_api.out

     

     =========

     Main Menu

     =========

     

     1: VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode

     2: VCAP + VENC        + VDIS  - SD Encode ONLY

     3: VCAP + VENC        + VDIS  - HD Encode ONLY

     4:               VDEC + VDIS  - SD/HD Decode ONLY

     5: VCAP               + VDIS  - NO Encode or Decode

     

     e: Exit

     

     Enter Choice: 5

    --------------- CHANNEL DETAILS-------------

    Capture Channels => 16

    Disp Channels => 16

    -------------------------------------------

     0: SYSTEM: System Common Init in progress !!!

     0: SYSTEM: IPC init in progress !!!

     14: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...

     15: SYSTEM: Creating MsgQ [HOST_MSGQ] ...

     17: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...

     18: SYSTEM: Opening MsgQ [DSP_MSGQ] ...

     19: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...

     19: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...

     20: SYSTEM: Notify register to [DSP] line 0, event 15 ...

     21: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...

     21: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...

     22: SYSTEM: IPC init DONE !!!

     23: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...

     25: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...

     27: SYSTEM: ListElem Shared Addr = 0x2b204080

     28: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...

     30: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...

     32: SYSTEM: ListElem Shared Addr = 0x2b221b80

     33: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...

     36: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...

     37: SYSTEM: ListElem Shared Addr = 0x2b23f680

     38: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...

     41: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...

     42: SYSTEM: ListElem Shared Addr = 0x2b25f080

     43: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...

     46: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...

     47: SYSTEM: ListElem Shared Addr = 0x2b27ea80

     66: SYSTEM: System Common Init Done !!!

     

     

    71:!!!SLAVE CORE [VPSS-M3] DOWN!!!

    SystemLink_copySlaveCoreExceptionContext:146

    mmap of [0xbe9e0000:36864]

    mmap virt addresss:0x2ac38000

    munmap of [0x2ac38000:36864]

    SystemLink_copySlaveCoreExceptionContext:153

     [m3vpss ]  73561: Assertion @ Line: 436 in links_m3vpss/system/system_dctrl.c: retVal == FVID2_SOK : failed !!!

     

  • The assertion indicates HDCOMP enable is failing.Does this board have HDCOMP connected to VGA similar to UDWorks DVR board ?

  • I have checked there was no HDCOMP connected to the board. How can I resolve this problem to run the demos successfully ?

  • I have disabled the HDCOMP in ti_vdis.c  with " pContext->deviceParams[VDIS_DEV_HDCOMP].enable = FALSE;//TRUE;",then I tried to run and debug it. The new error was below:

    root@dm816x:~# ./dvr_rdk_demo_mcfw_api.out

     

     =========

     Main Menu

     =========

     

     1: VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode

     2: VCAP + VENC        + VDIS  - SD Encode ONLY

     3: VCAP + VENC        + VDIS  - HD Encode ONLY

     4:               VDEC + VDIS  - SD/HD Decode ONLY

     5: VCAP               + VDIS  - NO Encode or Decode

     

     e: Exit

     

     Enter Choice: 5

    --------------- CHANNEL DETAILS-------------

    Capture Channels => 16

    Disp Channels => 16

    -------------------------------------------

     0: SYSTEM: System Common Init in progress !!!

     0: SYSTEM: IPC init in progress !!!

     13: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...

     14: SYSTEM: Creating MsgQ [HOST_MSGQ] ...

     16: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...

     17: SYSTEM: Opening MsgQ [DSP_MSGQ] ...

     18: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...

     18: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...

     19: SYSTEM: Notify register to [DSP] line 0, event 15 ...

     20: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...

     20: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...

     21: SYSTEM: IPC init DONE !!!

     22: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...

     24: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...

     25: SYSTEM: ListElem Shared Addr = 0x2b089080

     26: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...

     28: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...

     30: SYSTEM: ListElem Shared Addr = 0x2b0a6b80

     32: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...

     34: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...

     35: SYSTEM: ListElem Shared Addr = 0x2b0c4680

     36: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...

     38: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...

     40: SYSTEM: ListElem Shared Addr = 0x2b0e4080

     41: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...

     43: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...

     44: SYSTEM: ListElem Shared Addr = 0x2b103a80

     63: SYSTEM: System Common Init Done !!!

     [FBDEV]

     [FBDEV] FB: Starting !!!

     [FBDEV] FB: Opened device [/dev/fb0] (fd=22) !!!

     [FBDEV]

     [FBDEV] Fix Screen Info

     [FBDEV] ---------------

     [FBDEV] Line Length - 3840

     [FBDEV] Physical Address = 8ce00000

     [FBDEV] Buffer Length = 8294400

     [FBDEV]

     [FBDEV]

     [FBDEV] Var Screen Info

     [FBDEV] ---------------

     [FBDEV] Xres - 1920

     [FBDEV] Yres - 1080

     [FBDEV] Xres Virtual - 1920

     [FBDEV] Yres Virtual - 1080

     [FBDEV] Bits Per Pixel - 16

     [FBDEV] Pixel Clk - 13468

     [FBDEV] Rotation - 0

     [FBDEV]

     [FBDEV]

     [FBDEV] Reg Params Info

     [FBDEV] ---------------

     [FBDEV] region 0, postion 0 x 0, prioirty 1

     [FBDEV] first 1, last 1

     [FBDEV] sc en 0, sten en 0

     [FBDEV] tran en 0, type 0, key 0

     [FBDEV] blend 0, alpha 0

     [FBDEV] bb en 0, alpha 0

     [FBDEV]

     [FBDEV]

     [FBDEV] ### BUF SIZE = 4147200 Bytes !!!

     [FBDEV]

     [FBDEV] FB: Start DONE !!!

     [FBDEV]

     538: MCFW  : CPU Revision [ES1.1] !!!

     538: MCFW  : Detected [(null)] Board !!!

     538: MCFW  : Base Board Revision [DVR] !!!

     538: MCFW  : Daughter Card Revision [DVR] !!!

     [m3vpss ]  19483: CAPTURE: Create in progress !!!

     [m3vpss ]  19513: CAPTURE: VIP0 PortA capture mode is [ 8-bit, Pixel-mux Embedded Sync] !!!

     [m3vpss ]  19599: CAPTURE: VIP0 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!!

     

     

    674:!!!SLAVE CORE [VPSS-M3] DOWN!!!

    SystemLink_copySlaveCoreExceptionContext:146

    mmap of [0xbe9e0000:36864]

    mmap virt addresss:0x2bd5d000

    munmap of [0x2bd5d000:36864]

    SystemLink_copySlaveCoreExceptionContext:153

     [m3vpss ] Unhandled Exception:

     [m3vpss ] Exception occurred in ThreadType_Task

     [m3vpss ] handle: 0x3eecf928.

     [m3vpss ] stack base: 0x3ef462a0.

     [m3vpss ] stack size: 0x8000.

     [m3vpss ] R0 = 0x4409ad80  R8  = 0x3e8151cc

     [m3vpss ] R1 = 0x3e76d724  R9  = 0x00000000

     [m3vpss ] R2 = 0x00000000  R10 = 0x4409ad88

     [m3vpss ] R3 = 0x4409abcc  R11 = 0x3e730edc

     [m3vpss ] R4 = 0x3e769c40  R12 = 0x00000000

     [m3vpss ] R5 = 0x3e769c44  SP(R13) = 0x3ef4e148

     [m3vpss ] R6 = 0x3e72e170  LR(R14) = 0x00000001

     [m3vpss ] R7 = 0x00000000  PC(R15) = 0x0042e810

     [m3vpss ] PSR = 0x61000000

     [m3vpss ] ICSR = 0x00400803

     [m3vpss ] MMFSR = 0x00

     [m3vpss ] BFSR = 0x04

     [m3vpss ] UFSR = 0x0000

     [m3vpss ] HFSR = 0x40000000

     [m3vpss ] DFSR = 0x00000000

     [m3vpss ] MMAR = 0xe000ed34

     [m3vpss ] BFAR = 0xe000ed38

     [m3vpss ] AFSR = 0x00000000

     [m3vpss ] Terminating Execution...

     

  •  I have changed the link_api_demos to the "Multi  CH Capture  + Display  (16CH 4x TVP5158, NTSC, YUV422I )" mode, and run it with EVM board,but it occured errros below.Could anyone can help me ? Thx.

    root@dm816x:~# ./dvr_rdk_demo_link_api.out

     0: SYSTEM: System Common Init in progress !!!

     0: SYSTEM: IPC init in progress !!!

     12: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...

     14: SYSTEM: Creating MsgQ [HOST_MSGQ] ...

     16: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...

     17: SYSTEM: Opening MsgQ [DSP_MSGQ] ...

     17: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...

     18: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...

     19: SYSTEM: Notify register to [DSP] line 0, event 12 ...

     20: SYSTEM: Notify register to [VIDEO-M3] line 0, event 12 ...

     20: SYSTEM: Notify register to [VPSS-M3] line 0, event 12 ...

     20: SYSTEM: IPC init DONE !!!

     22: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 ...

     24: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 ...

     25: SYSTEM: ListElem Shared Addr = 0x2b072c80

     26: SYSTEM: Creating ListMP [HOST_IPC_OUT_30] in region 0 ...

     28: SYSTEM: Creating ListMP [HOST_IPC_IN_30] in region 0 ...

     30: SYSTEM: ListElem Shared Addr = 0x2b08a580

     31: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...

     33: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...

     35: SYSTEM: ListElem Shared Addr = 0x2b0a1e80

     36: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...

     38: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...

     40: SYSTEM: ListElem Shared Addr = 0x2b0c1480

     41: SYSTEM: Creating ListMP [HOST_IPC_OUT_26] in region 0 ...

     43: SYSTEM: Creating ListMP [HOST_IPC_IN_26] in region 0 ...

     45: SYSTEM: ListElem Shared Addr = 0x2b0e0a80

     45: SYSTEM: System Common Init Done !!!

    Yinxr Test,Wintech SDK,-05-13.

     

     ============

     Chain Select

     ============

     

     Current System Settings,

     NSF Mode              : CHR DS ONLY

     

     1: Multi  CH Capture + NSF     + DEI     + Display           (16CH 4x TVP5158, NTSC, YUV422I )

     2: Multi  CH Src + Enc + Dec + Snk (VideoM3 chain)           (VideoM3 local loopBack)

     3: Multi  CH Cap + NF + Enc + Dec + SW (DEI/H,SC5) + Disp    (16CH Cap+Enc+Dec+Disp, Interlace Enc/Dec)

     4: Multi  CH Cap + NF + DEI/H + Enc + Dec + SW (SC5) + Disp  (16CH Cap+Enc+Dec+Disp, Progressive Enc/Dec)

     

     s: System Settings

     

     x: Exit

     

     Enter Choice: 1

     

     9058: CHAINS  : CPU Revision [ES1.1] !!!

     9058: CHAINS  : Detected [(null)] Board !!!

     9058: CHAINS  : Base Board Revision [DVR] !!!

     9058: CHAINS  : Daughter Card Revision [DVR] !!!

    Display 0: Layout: CHAINS_LAYOUT_2X2_PLUS_4CH

     [m3vpss ] System_dispSetPixClk: Error -6 @ line 291

     [m3vpss ]  33090: Assertion @ Line: 345 in links_m3vpss/system/system_dctrl.c: FVID2_SOK == retVal : failed !!!

     [m3vpss ]  33092: NOTIFY: Send Event to [HOST][35] failed !!! (status = -14)

     [m3vpss ]  33092: Assertion @ Line: 67 in links_common/system/system_ipc_notify.c: status == Notify_S_SUCCESS : failed !!!

     [m3vpss ]  33093: NOTIFY: Send Event to [HOST][35] failed !!! (status = -14)

     [m3vpss ]  33093: Assertion @ Line: 67 in links_common/system/system_ipc_notify.c: status == Notify_S_SUCCESS : failed !!!

     [m3vpss ]  33095: NOTIFY: Send Event to [HOST][35] failed !!! (status = -14)

    ....