Hi TI experts,
There are two problem we met in the actual project,
1.The capture node is stuck suddenly after a long time running
2.After repeatedly restarting the application Include capture node and display node, the capture node is stuck
I tried to locate and analyze the cause of the problem,The node is stuck in the following position:
in:psdk_rtos_auto_j7_07_00_00_11/tiovx/kernels_j7/hwa/capture/vx_capture_target.c
static vx_status VX_CALLBACK tivxCaptureProcess(tivx_target_kernel_instance kernel,uint32_t node_cmd_id, tivx_obj_desc_t *obj_desc[],uint16_t num_params, void *priv_arg)
{
...
tivxCaptureSetTimeout(prms); <-- here
...
}
when let prms->enableErrorFrameTimeout = 1, the program can exit normally. But when you start the application again, capture will not work!
[MCU2_0] 3447.748854 s: VX_ZONE_ERROR:[tivxEventWait:96] Semaphore wait returned an error
[MCU2_0] 3447.748927 s: VX_ZONE_ERROR:[tivxCaptureIsAllChFrameAvailable:710] Channel 1 not received!!!
[MCU2_0] 3447.748976 s: VX_ZONE_ERROR:[tivxCaptureIsAllChFrameAvailable:710] Channel 2 not received!!!
[MCU2_0] 3447.749019 s: VX_ZONE_ERROR:[tivxCaptureIsAllChFrameAvailable:710] Channel 3 not received!!!
[MCU2_0] 3447.749088 s: VX_ZONE_ERROR:[tivxTargetKernelExecute:380] Kernel process function for [com.ti.capture] returned error code: -1
[MCU2_0] 3447.838848 s: VX_ZONE_ERROR:[tivxEventWait:96] Semaphore wait returned an error
[MCU2_0] 3447.838919 s: VX_ZONE_ERROR:[tivxCaptureIsAllChFrameAvailable:710] Channel 0 not received!!!
[MCU2_0] 3447.838966 s: VX_ZONE_ERROR:[tivxCaptureIsAllChFrameAvailable:710] Channel 1 not received!!!
[MCU2_0] 3447.839008 s: VX_ZONE_ERROR:[tivxCaptureIsAllChFrameAvailable:710] Channel 2 not received!!!
[MCU2_0] 3447.839050 s: VX_ZONE_ERROR:[tivxCaptureIsAllChFrameAvailable:710] Channel 3 not received!!!
[MCU2_0] 3447.839116 s: VX_ZONE_ERROR:[tivxTargetKernelExecute:380] Kernel process function for [com.ti.capture] returned error code: -1
[MCU2_0] 3447.839415 s:
[MCU2_0] 3447.838848 s: VX_ZONE_ERROR:[tivxEventWait:96] Semaphore wait returned an error
I checked the datasheet here, all registers do not indicate an exception:
[MCU2_0] 3447.839582 s: dphy_rx_vbus2apb_reg: 0x 0:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.839623 s: dphy_rx_vbus2apb_reg: 0x 10:[ 0]|[ 0]|[ 1140]|[ 0]|
[MCU2_0] 3447.839665 s: dphy_rx_vbus2apb_reg: 0x 20:[ 429]|[ 5030101]|[ 32011e]|[ 400]|
[MCU2_0] 3447.839704 s: dphy_rx_vbus2apb_reg: 0x 30:[ 400c8]|[ 300c8]|[ 80103]|[ 0]|
[MCU2_0] 3447.839744 s: dphy_rx_vbus2apb_reg: 0x 40:[ 800000]|[ 15]|[ 0]|[ 0]|
[MCU2_0] 3447.839785 s: dphy_rx_vbus2apb_reg: 0x 50:[ 0]|[ 140]|[ 0]|[ 694]|
[MCU2_0] 3447.839862 s: dphy_rx_vbus2apb_reg: 0x 74:[ 0]|[ f0501b0]|[ 28]|[ a]|
[MCU2_0] 3447.839908 s: dphy_rx_vbus2apb_reg: 0x 84:[decdbcab]|[ 28]|[ 40400]|[ 201]|
[MCU2_0] 3447.839949 s: dphy_rx_vbus2apb_reg: 0x 9c:[ 0]|[ 0]|[ 1370ba]|[ ee8]|
[MCU2_0] 3447.839988 s: dphy_rx_vbus2apb_reg: 0x ac:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840029 s: dphy_rx_vbus2apb_reg: 0x e4:[ 0]|[ 2]|[ ee2e803]|[ 27]|
[MCU2_0] 3447.840068 s: dphy_rx_vbus2apb_reg: 0x100:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840108 s: dphy_rx_vbus2apb_reg: 0x110:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840149 s: dphy_rx_vbus2apb_reg: 0x120:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840189 s: dphy_rx_vbus2apb_reg: 0x130:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840229 s: dphy_rx_vbus2apb_reg: 0x20c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840270 s: dphy_rx_vbus2apb_reg: 0x21c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840310 s: dphy_rx_vbus2apb_reg: 0x22c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840350 s: dphy_rx_vbus2apb_reg: 0x23c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840390 s: dphy_rx_vbus2apb_reg: 0x24c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840430 s: dphy_rx_vbus2apb_reg: 0x25c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840471 s: dphy_rx_vbus2apb_reg: 0x26c:[ 0]|[ 0]|[ a000018]|[decdbcab]|
[MCU2_0] 3447.840512 s: dphy_rx_vbus2apb_reg: 0x27c:[ 28]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840553 s: dphy_rx_vbus2apb_reg: 0x28c:[ 0]|[ 10dd0b8]|[ 8000]|[ 0]|
[MCU2_0] 3447.840595 s: dphy_rx_vbus2apb_reg: 0x29c:[ 5ee083]|[b838eb87]|[ 10200d]|[ 1001015]|
[MCU2_0] 3447.840636 s: dphy_rx_vbus2apb_reg: 0x2ac:[ 101811]|[ c09]|[ 400800]|[ 10020]|
[MCU2_0] 3447.840677 s: dphy_rx_vbus2apb_reg: 0x2bc:[ 58a0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840717 s: dphy_rx_vbus2apb_reg: 0x2cc:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840757 s: dphy_rx_vbus2apb_reg: 0x300:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840797 s: dphy_rx_vbus2apb_reg: 0x310:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840860 s: dphy_rx_vbus2apb_reg: 0x320:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840904 s: dphy_rx_vbus2apb_reg: 0x330:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840945 s: dphy_rx_vbus2apb_reg: 0x340:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.840983 s: dphy_rx_vbus2apb_reg: 0x350:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841023 s: dphy_rx_vbus2apb_reg: 0x360:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841063 s: dphy_rx_vbus2apb_reg: 0x370:[ 0]|[ a000018]|[decdbcab]|[ 28]|
[MCU2_0] 3447.841104 s: dphy_rx_vbus2apb_reg: 0x380:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841145 s: dphy_rx_vbus2apb_reg: 0x390:[ 2c0b8]|[ 8000]|[ 0]|[ 5cdc83]|
[MCU2_0] 3447.841186 s: dphy_rx_vbus2apb_reg: 0x3a0:[3c3cfbc7]|[ 102019]|[ 100100d]|[ 102c0d]|
[MCU2_0] 3447.841228 s: dphy_rx_vbus2apb_reg: 0x3b0:[ 10a001d]|[ 400800]|[ 10020]|[ 58a0]|
[MCU2_0] 3447.841268 s: dphy_rx_vbus2apb_reg: 0x3c0:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841309 s: dphy_rx_vbus2apb_reg: 0x3d0:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841349 s: dphy_rx_vbus2apb_reg: 0x404:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841389 s: dphy_rx_vbus2apb_reg: 0x414:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841429 s: dphy_rx_vbus2apb_reg: 0x424:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841469 s: dphy_rx_vbus2apb_reg: 0x434:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841510 s: dphy_rx_vbus2apb_reg: 0x444:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841550 s: dphy_rx_vbus2apb_reg: 0x454:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841591 s: dphy_rx_vbus2apb_reg: 0x464:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841631 s: dphy_rx_vbus2apb_reg: 0x474:[ a000018]|[decdbcab]|[ 28]|[ 0]|
[MCU2_0] 3447.841672 s: dphy_rx_vbus2apb_reg: 0x484:[ 0]|[ 0]|[ 0]|[ 10dd0b8]|
[MCU2_0] 3447.841711 s: dphy_rx_vbus2apb_reg: 0x494:[ 8000]|[ 0]|[ 60de83]|[c0410407]|
[MCU2_0] 3447.841752 s: dphy_rx_vbus2apb_reg: 0x4a4:[ 107439]|[ 11c0039]|[ 10200d]|[ 1001015]|
[MCU2_0] 3447.841792 s: dphy_rx_vbus2apb_reg: 0x4b4:[ 400800]|[ 10020]|[ 58a0]|[ 0]|
[MCU2_0] 3447.841847 s: dphy_rx_vbus2apb_reg: 0x4c4:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841892 s: dphy_rx_vbus2apb_reg: 0x4d4:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841934 s: dphy_rx_vbus2apb_reg: 0x508:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.841972 s: dphy_rx_vbus2apb_reg: 0x518:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842011 s: dphy_rx_vbus2apb_reg: 0x528:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842051 s: dphy_rx_vbus2apb_reg: 0x538:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842090 s: dphy_rx_vbus2apb_reg: 0x548:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842130 s: dphy_rx_vbus2apb_reg: 0x558:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842170 s: dphy_rx_vbus2apb_reg: 0x568:[ 0]|[ 0]|[ 0]|[ a000018]|
[MCU2_0] 3447.842210 s: dphy_rx_vbus2apb_reg: 0x578:[decdbcab]|[ 28]|[ 0]|[ 0]|
[MCU2_0] 3447.842250 s: dphy_rx_vbus2apb_reg: 0x588:[ 0]|[ 0]|[ 280b8]|[ 45400]|
[MCU2_0] 3447.842291 s: dphy_rx_vbus2apb_reg: 0x598:[ 0]|[ 60e083]|[3838e387]|[ 103c19]|
[MCU2_0] 3447.842331 s: dphy_rx_vbus2apb_reg: 0x5a8:[ 10e0021]|[ 100403]|[ 1000005]|[ 400800]|
[MCU2_0] 3447.842371 s: dphy_rx_vbus2apb_reg: 0x5b8:[ 10020]|[ 58a0]|[ 0]|[ 0]|
[MCU2_0] 3447.842410 s: dphy_rx_vbus2apb_reg: 0x5c8:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842450 s: dphy_rx_vbus2apb_reg: 0x5d8:[ 0]|[ 16b]|[ 0]|[aaaaaaaa]|
[MCU2_0] 3447.842490 s: dphy_rx_vbus2apb_reg: 0xb0c:[ 2aa]|[22222222]|[ 222]|[ 0]|
[MCU2_0] =====================================================
[MCU2_0] 3447.842569 s: dphy_rx_vbus2apb_reg: 0xc00:[ 50f]|[ 0]|[ 10f]|[ e0]|
[MCU2_0] 3447.842609 s: dphy_rx_vbus2apb_reg: 0xc10:[ 2d]|[ 5]|[ 580]|[ 0]|
[MCU2_0] 3447.842648 s: dphy_rx_vbus2apb_reg: 0xc20:[ 5]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842688 s: dphy_rx_vbus2apb_reg: 0xc30:[ 5]|[ 57d]|[ 0]|[ 5]|
[MCU2_0] 3447.842727 s: dphy_rx_vbus2apb_reg: 0xc40:[ 56f]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842771 s: if_ecc_reg[1]: 0x 0:[66a0ea00]|[ 0]|[ 8]|[ 0]|
[MCU2_0] 3447.842828 s: if_ecc_reg[1]: 0x 3c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842872 s: if_ecc_reg[1]: 0x13c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842913 s: if_ecc_reg[1]: 0x200:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.842954 s: if_shim_reg[1]: 0x 0:[64706100]|[ 0]|[ 0]|[ e01]|
[MCU2_0] 3447.842993 s: if_shim_reg[1]: 0x 20:[8400001e]|[ 10000]|[ 0]|[64706100]|
[MCU2_0] 3447.843035 s: if_vbus2apb_reg_list[1]: 0x 0:[8421164c]|[ 0]|[43210410]|[ 0]|
[MCU2_0] 3447.842529 s: dphy_rx_vbus2apb_reg: 0xb1c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843076 s: if_vbus2apb_reg_list[1]: 0x 18:[ 0]|[ 0]|[ 22]|[ 0]|
[MCU2_0] 3447.843120 s: if_vbus2apb_reg_list[1]: 0x 28:[ 1000]|[ f03b1]|[ 1f01f]|[ 222206]|
[MCU2_0] 3447.843120 s: if_vbus2apb_reg_list[1]: 0x 28:[ 1000]|[ f03b1]|[ 1f01f]|[ 222206]|
[MCU2_0] 3447.843163 s: if_vbus2apb_reg_list[1]: 0x 4c:[ 10000]|[ 0]|[10000000]|[ff8b005e]|
[MCU2_0] 3447.843163 s: if_vbus2apb_reg_list[1]: 0x 4c:[ 10000]|[ 0]|[10000000]|[ff8b005e]|
[MCU2_0] 3447.843206 s: if_vbus2apb_reg_list[1]: 0x 80:[ 0]|[ 1]|[80000112]|[ 0]|
[MCU2_0] 3447.843206 s: if_vbus2apb_reg_list[1]: 0x 80:[ 0]|[ 1]|[80000112]|[ 0]|
[MCU2_0] 3447.843247 s: if_vbus2apb_reg_list[1]: 0x10c:[ 100]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843288 s: if_vbus2apb_reg_list[1]: 0x11c:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843163 s: if_vbus2apb_reg_list[1]: 0x 4c:[ 10000]|[ 0]|[10000000]|[ff8b005e]|
[MCU2_0] 3447.843330 s: if_vbus2apb_reg_list[1]: 0x200:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843371 s: if_vbus2apb_reg_list[1]: 0x210:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843412 s: if_vbus2apb_reg_list[1]: 0x220:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843454 s: if_vbus2apb_reg_list[1]: 0x304:[ 100]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843412 s: if_vbus2apb_reg_list[1]: 0x220:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843371 s: if_vbus2apb_reg_list[1]: 0x210:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843454 s: if_vbus2apb_reg_list[1]: 0x304:[ 100]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843494 s: if_vbus2apb_reg_list[1]: 0x314:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843536 s: if_vbus2apb_reg_list[1]: 0x324:[ 0]|[ 0]|[ 0]|[ 100]|
[MCU2_0] 3447.843577 s: if_vbus2apb_reg_list[1]: 0x408:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843617 s: if_vbus2apb_reg_list[1]: 0x418:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843658 s: if_vbus2apb_reg_list[1]: 0x428:[ 0]|[ 0]|[ 0]|[ 7f]|
[MCU2_0] 3447.843494 s: if_vbus2apb_reg_list[1]: 0x314:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843536 s: if_vbus2apb_reg_list[1]: 0x324:[ 0]|[ 0]|[ 0]|[ 100]|
[MCU2_0] 3447.843577 s: if_vbus2apb_reg_list[1]: 0x408:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843617 s: if_vbus2apb_reg_list[1]: 0x418:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843658 s: if_vbus2apb_reg_list[1]: 0x428:[ 0]|[ 0]|[ 0]|[ 7f]|
[MCU2_0] 3447.843700 s: if_vbus2apb_reg_list[1]: 0x90c:[ 0]|[ 7f]|[ 0]|[ 0]|
[MCU2_0] 3447.843741 s: if_vbus2apb_reg_list[1]: 0x928:[ 0]|[ 0]|[ 1]|[ 0]|
[MCU2_0] 3447.843577 s: if_vbus2apb_reg_list[1]: 0x408:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843617 s: if_vbus2apb_reg_list[1]: 0x418:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843658 s: if_vbus2apb_reg_list[1]: 0x428:[ 0]|[ 0]|[ 0]|[ 7f]|
[MCU2_0] 3447.843700 s: if_vbus2apb_reg_list[1]: 0x90c:[ 0]|[ 7f]|[ 0]|[ 0]|
[MCU2_0] 3447.843741 s: if_vbus2apb_reg_list[1]: 0x928:[ 0]|[ 0]|[ 1]|[ 0]|
[MCU2_0] 3447.843700 s: if_vbus2apb_reg_list[1]: 0x90c:[ 0]|[ 7f]|[ 0]|[ 0]|
[MCU2_0] 3447.843741 s: if_vbus2apb_reg_list[1]: 0x928:[ 0]|[ 0]|[ 1]|[ 0]|
[MCU2_0] 3447.843783 s: if_vbus2apb_reg_list[1]: 0x940:[ 3fff]|[ 0]|[50220200]|[8421164c]|
[MCU2_0] 3447.843658 s: if_vbus2apb_reg_list[1]: 0x428:[ 0]|[ 0]|[ 0]|[ 7f]|
[MCU2_0] 3447.843844 s: if_cp_intd_reg[1]: 0x 0:[6690a200]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843891 s: if_cp_intd_reg[1]: 0x104:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843931 s: if_cp_intd_reg[1]: 0x504:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843972 s: if_cp_intd_reg[1]: 0xa84:[ 0]|[6690a200]|[ 0]|[ 0]|
[MCU2_0] 3447.843931 s: if_cp_intd_reg[1]: 0x504:[ 0]|[ 0]|[ 0]|[ 0]|
[MCU2_0] 3447.843972 s: if_cp_intd_reg[1]: 0xa84:[ 0]|[6690a200]|[ 0]|[ 0]|
[MCU2_0] 3447.843891 s: if_cp_intd_reg[1]: 0x104:[ 0]|[ 0]|[ 0]|[ 0]|
The above problems cannot be accepted by users in mass production projects.So what can I do to help me find the abnormality of the camera and its capture node, and fix it when there is a problem without restarting applications and boards?
On the other hand, Do lpsc53 and lpsc54 support operation in user mode?
I am looking for your reply, thanks!