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: How to Create Custom Node using PyTIOVX tool

Part Number: TDA4VM
Other Parts Discussed in Thread: TDA4VL

I am using this code to generate custom node but I am getting error

from tiovx import *

code = KernelExportCode(Module.SRV, Core.A72, "VISION_APPS_PATH")

kernel = Kernel("gl_srv")
kernel.setParameter(Type.USER_DATA_OBJECT, Direction.INPUT, ParamState.REQUIRED, "CONFIGURATION", ['tivx_srv_params_t'])

kernel.setParameter(Type.OBJECT_ARRAY, Direction.INPUT, ParamState.REQUIRED, "INPUT", ['VX_TYPE_NV12'])

kernel.setParameter(Type.OBJECT_ARRAY, Direction.INPUT, ParamState.OPTIONAL, "SRV_VIEWS", ['tivx_srv_coords_t'])
kernel.setParameter(Type.ARRAY, Direction.INPUT, ParamState.OPTIONAL, "GALIGN_LUT")
kernel.setParameter(Type.IMAGE, Direction.OUTPUT, ParamState.REQUIRED, "OUTPUT", ['VX_DF_IMAGE_U8'])

kernel.setTarget(Target.A72_0)

code.export(kernel)

code.exportDiagram(kernel)




ERROR : 

Generating C code for OpenVX kernel ... DONE !!!
Creating /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps//kernels/srv/DEVELOPER_TODO.txt
Traceback (most recent call last):
File "vx_new_kernel.py", line 16, in <module>
code.export(kernel)
File "/home/divyanshu/TDA4VL/sdk/ti-processor-sdk-rtos-j721s2-evm-08_00_04_04/tiovx/tools/PyTIOVX/tiovx/kernel_code.py", line 3120, in export
self.todo()
File "/home/divyanshu/TDA4VL/sdk/ti-processor-sdk-rtos-j721s2-evm-08_00_04_04/tiovx/tools/PyTIOVX/tiovx/kernel_code.py", line 3034, in todo
with open(file, 'rb') as f:
IsADirectoryError: [Errno 21] Is a directory: '/home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps//kernels/srv/gpu/3dsrv/Tools/OGLES2/Build/OSX/OGLES2Tools.xcodeproj'

  • Hi,

    Could you try the script again after changing the name of the folder OGLES2Tools.xcodeproj to OGLES2Tools_xcodeproj in the path vision_apps/kernels/srv/gpu/3dsrv/Tools/OGLES2/Build/OSX/


    Regards,
    Nikhil

  • Now I am not getting Error after changing the module name as "Any File Folder Name "  or as "IMAGING" able to generate the code successfully 

  • Hi,

    Did this resolve your issue?

    Regards,
    Nikhil

  • Yes the issue has been solve , 

  • after this new file has been created at this path 

    sdk/ vision_apps/ kernels/ Imaging 

    when I am trying to compile from sdk / vision_apps/ --> make vision_apps 
     
    I am getting error as 

    Error : 

    Linking /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/libtivision_apps.so
    Linking /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/vx_app_c7x_kernel.out
    /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/libtivision_apps.so: undefined reference to `tivxAewbNode'
    collect2: error: ld returned 1 exit status
    concerto/finale.mak:212: recipe for target '/home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/vx_app_c7x_kernel.out' failed
    make[1]: [/home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/vx_app_c7x_kernel.out] Error 1 (ignored)
    Linking /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/vx_app_dense_optical_flow.out
    /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/libtivision_apps.so: undefined reference to `tivxAewbNode'
    collect2: error: ld returned 1 exit status
    concerto/finale.mak:212: recipe for target '/home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/vx_app_dense_optical_flow.out' failed
    make[1]: [/home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/vx_app_dense_optical_flow.out] Error 1 (ignored)
    Linking /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/vx_app_arm_fd_exchange_producer.out
    /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/9.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/libtivision_apps.so: undefined reference to `tivxAewbNode'
    collect2: error: ld returned 1 exit status
    concerto/finale.mak:212: recipe for target '/home/divyanshu/sdk/ti-processor-sdk-rtos-j721e-evm-08_02_00_05/vision_apps/out/J7/A72/LINUX/release/vx_app_arm_fd_exchange_producer.out' failed


    Can you tell me will I have to add any ti library