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: add our own kernel

Part Number: TDA4VM


HI:

I have a question about dl_demos. when using our own models for seg, models have been transed successfully with the tidl exe. When adding our own kernel to create and veritify the graph, we have a problem:

11800.345377 s: VX_ZONE_ERROR:[ownContextSendCmd:789] Command ack message returned failure cmd_status: -7

11800.345432 s: VX_ZONE_ERROR:[ownContextSendCmd:823] tivxEventWait() failed.

11800.345477 s: VX_ZONE_ERROR:[ownNodeKernelInit:557] Target kernel, TIVX_CMD_NODE_CREATE failed for node MultitaskPostProcNode

11800.345546 s: VX_ZONE_ERROR:[ownNodeKernelInit:558] Please be sure the target callbacks have been registered for this core

11800.345616 s: VX_ZONE_ERROR:[ownNodeKernelInit:559] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel

11800.345730 s: VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 1, kernel com.ti.img_proc.multitask.postprocess ... failed !!!

11800.345815 s: VX_ZONE_ERROR:[vxVerifyGraph:2046] Node kernel init failed

11800.345867 s: VX_ZONE_ERROR:[vxVerifyGraph:2100] Graph verify failed

we have our postproc kernel in host and c66. The cmd_status is -7 which means no resource. However the grap only have two node, tidl and postproc,  tidl is set on dsp1, postproc is set on dsp2.

thanks

  • Also, Our kernel was fun_ptr was set NULL, is_target_kernel was true, and then what function will use the process?

  • Hi Ma Quang,

    It looks like you have not registered callbacks for your new kernel. Please register, create, process and delete callbacks, as they are must. Otherwise, as we can see, graph verification fails. 

    Regards,

    Brijesh

  • Hi, 

    I have register my own kernel in host, i am confuse that if i set target DSP1, which func will be called, funcs in c66 or host?

    Also, i notice that the porcess func in host kernels are null, how can i konw what operations have done in img_proc kernel demos.

    Regards,,

    Ma Qiang

  • Hi Ma Qiang,

    No, this callback functions are registered only on the target side. On the host side, only Validate callback function is registered. 

    If you have registered kernel target for DSP, then these functions needs to be available on C6x, not on host side.

    Please refer to sample kernel implementation in ti-processor-sdk-rtos-j721e-evm-08_00_00_12\vision_apps\kernels\sample folder in vision apps. 

    Regards,

    Brijesh