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.

TDA4VH-Q1: Unable to see TIDLRT logs when calling TIDLRT APIs from MCU3_0 RTOS application

Part Number: TDA4VH-Q1

Hi,

We have developed a custom MCU3_0 RTOS application where we are attempting to invoke TIDL-RT APIs (for example TIDLRT_create) from the MCU3_0 core.

The API call is made from the following file in the tiovx example:

ti-processor-sdk-rtos-j784s4-evm-09_02_00_05/tiovx/tutorial/ch06_openVX_r5_demo/vx_tutorial_basic_openvx_kernels.c

We are able to successfully build the application and the firmware loads correctly on the MCU3_0 core when booted through Linux.

However, we are not able to confirm whether the TIDLRT_create API is being executed successfully.

To verify the execution flow, we added tidlrt_printf statements inside the TIDL-RT APIs to trace the execution. But we are not seeing any logs printed on the Linux terminal, even though the MCU3_0 core firmware appears to be loading and running properly.

Our questions are:

  1. Are TIDL-RT APIs supported when called from an RTOS application running on MCU3_0 (R5F)?

  2. Is there any additional configuration required to enable logging from tidlrt_printf on RTOS cores when booted through Linux?

  3. Is there a recommended method to debug or verify execution of TIDL-RT APIs on MCU cores?

Any guidance or references would be helpful.

Thanks,

Madhu

  • Hi Madhu,

    1. No, currently it is not supported, as the tidl-rt api's are meant to run in linux (openvx host). I remember your team have modified framework to support r5f as host.

    2. Typically all the remote core logs are printed using appLogPrintf() api which puts the logs in the shared memory, a72 core run an application in background (vx_app_remote_log.out) (which is called when you run source ./vision_apps_init.sh) which collects the logs from shared memory and puts it to the console. 

    You can try changing the tidlrt_printf definition to use appLogPrintf() api.

    3. You can do debug build and use ccs to check the code execution in mcu3_0.

    Regards,
    Gokul

  • Hi Gokul ,


    Thanks for the reply.

    Basically I was trying to build the vision_apps in debug build by providing this macro "PROFILE=debug"  in my make command, but then I was facing these below compilation issues from pdk components. So I have built the pdk libraries as well from the ti/build folder and also ran the setup script from sdk_builder.

    Linking ti-processor-sdk-rtos-j784s4-evm-09_02_00_05/vision_apps/out/J784S4/R5F/FREERTOS/debug/vx_app_rtos_linux_mcu2_0.out
    error: cannot find file "vx_app_modules.lib"
    error: cannot find file "app_utils_hwa.lib"
    error: cannot find file "app_utils_mem.lib"
    error: cannot find file "app_utils_rtos.lib"
    error: cannot find file "app_utils_console_io.lib"
    error: cannot find file "app_utils_timer.lib"
    error: cannot find file "app_utils_file_io.lib"
    error: cannot find file "app_utils_ipc.lib"
    error: cannot find file "app_utils_remote_service.lib"
    error: cannot find file "app_utils_udma.lib"
    error: cannot find file "app_utils_misc.lib"
    error: cannot find file "app_utils_perf_stats.lib"
    error: cannot find file "vx_conformance_engine.lib"
    error: cannot find file "vx_conformance_tests.lib"
    error: cannot find file "vx_conformance_tests_testmodule.lib"
    error: cannot find file "vx_tiovx_tests.lib"
    error: cannot find file "vx_tiovx_internal_tests.lib"
    error: cannot find file "vx_tutorial.lib"
    error: cannot find file "vx_utils.lib"
    error: cannot find file "vx_framework.lib"
    error: cannot find file "vx_vxu.lib"
    error: cannot find file "vx_platform_psdk_j7_rtos.lib"
    error: cannot find file "vx_kernels_target_utils.lib"
    error: cannot find file "vx_kernels_test_kernels_tests.lib"
    error: cannot find file "vx_kernels_test_kernels.lib"
    error: cannot find file "vx_target_kernels_source_sink.lib"
    error: cannot find file "vx_kernels_host_utils.lib"
    error: cannot find file "vx_kernels_openvx_core.lib"
    error: cannot find file "vx_kernels_hwa_tests.lib"
    error: cannot find file "vx_kernels_hwa.lib"
    error: cannot find file "vx_target_kernels_vpac_nf.lib"
    error: cannot find file "vx_target_kernels_vpac_viss.lib"
    error: cannot find file "vx_target_kernels_vpac_msc.lib"
    error: cannot find file "vx_target_kernels_vpac_ldc.lib"
    error: cannot find file "vx_target_kernels_dmpac_dof.lib"
    error: cannot find file "vx_target_kernels_dmpac_sde.lib"
    error: cannot find file "vx_target_kernels_display.lib"
    error: cannot find file "vx_target_kernels_capture.lib"
    error: cannot find file "vx_target_kernels_csitx.lib"
    error: cannot find file "vx_target_kernels_j7_arm.lib"
    error: cannot find file "vx_target_kernels_display_m2m.lib"
    error: cannot find file "vx_target_kernels_openvx_ext.lib"
    error: cannot find file "vx_kernels_openvx_ext.lib"
    error: cannot find file "vx_tidl_rt.lib"
    error: cannot find file "vx_kernels_tidl.lib"
    error: cannot find file "vx_nested_kernels_tidl.lib"
    error: cannot find file "ti_imaging_dcc.lib"
    error: cannot find file "vx_kernels_imaging.lib"
    error: cannot find file "vx_target_kernels_imaging_aewb.lib"
    error: cannot find file "ti_imaging_aealg.lib"
    error: cannot find file "ti_imaging_sensordrv.lib"
    error: cannot find file "ti_imaging_ittsrvr.lib"
    error: cannot find file "app_utils_sensors.lib"
    error: cannot find file "app_utils_iss.lib"
    error: cannot find file "app_utils_hwa.lib"
    error: cannot find file "app_utils_sciclient.lib"
    error: cannot find file "ethfw_callbacks.lib"
    error: cannot find file "eth_intervlan.lib"
    error: cannot find file "ethfw_board.lib"
    error: cannot find file "ethfw_remotecfg_server.lib"
    error: cannot find file "ethfw_common.lib"
    error: cannot find file "ti.board.aer5f"
    error: cannot find file "ti.drv.uart.aer5f"
    error: cannot find file "ipc.aer5f"
    error: cannot find file "fvid2.aer5f"
    error: cannot find file "udma.aer5f"
    error: cannot find file "ti.drv.i2c.aer5f"
    error: cannot find file "ti.osal.aer5f"
    error: cannot find file "ti.kernel.freertos.aer5f"
    error: cannot find file "ti.csl.aer5f"
    error: cannot find file "ti.csl.init.aer5f"
    error: cannot find file "csirx.aer5f"
    error: cannot find file "csitx.aer5f"
    error: cannot find file "dss.aer5f"
    error: cannot find file "vhwa.aer5f"
    error: cannot find file "enetsoc.aer5f"
    error: cannot find file "enet.aer5f"
    error: cannot find file "enetphy.aer5f"
    error: cannot find file "tsn_gptp.aer5f"
    error: cannot find file "tsn_uniconf.aer5f"
    error: cannot find file "tsn_combase.aer5f"
    error: cannot find file "tsn_unibase.aer5f"
    error: cannot find file "ti.drv.mmcsd.aer5f"
    error: cannot find file "ti.fs.fatfs.aer5f"
    error: cannot find file "lwipcontrib_freertos.aer5f"
    error: cannot find file "lwipstack_freertos.aer5f"
    error: cannot find file "lwipport_freertos.aer5f"
    error: cannot find file "lwipif_freertos.aer5f"
    error: cannot find file "lwipific_freertos.aer5f"
    error: cannot find file "enet_intercore.aer5f"
    error: cannot find file "enet_example_utils_freertos.aer5f"
    error: cannot find file "enet_cfgserver_freertos.aer5f"
    error: cannot find file "pm_lib.aer5f"
    error: cannot find file "sciclient.aer5f"
    
     undefined             first referenced
      symbol                   in file     
     ---------             ----------------
     _freertosresetvectors                 
    
    error: unresolved symbols remain
    warning: entry-point symbol "_freertosresetvectors" undefined
    warning: no suitable entry-point found; setting to 0
    error: errors encountered during linking;
    
    Linking ti-processor-sdk-09_02_00/ti-processor-sdk-rtos-j784s4-evm-09_02_00_05/vision_apps/out/J784S4/R5F/FREERTOS/debug/vx_app_rtos_linux_mcu3_0.out
    error: cannot find file "vx_app_modules.lib"
    error: cannot find file "app_utils_hwa.lib"
    error: cannot find file "app_utils_mem.lib"
    error: cannot find file "app_utils_rtos.lib"
    error: cannot find file "app_utils_console_io.lib"
    error: cannot find file "app_utils_timer.lib"
    error: cannot find file "app_utils_file_io.lib"
    error: cannot find file "app_utils_ipc.lib"
    error: cannot find file "app_utils_remote_service.lib"
    error: cannot find file "app_utils_udma.lib"
    error: cannot find file "app_utils_misc.lib"
    error: cannot find file "app_utils_perf_stats.lib"
    error: cannot find file "vx_conformance_engine.lib"
    error: cannot find file "vx_conformance_tests.lib"
    error: cannot find file "vx_conformance_tests_testmodule.lib"
    error: cannot find file "vx_tiovx_tests.lib"
    error: cannot find file "vx_tiovx_internal_tests.lib"
    error: cannot find file "vx_tutorial.lib"
    error: cannot find file "vx_utils.lib"
    error: cannot find file "vx_framework.lib"
    error: cannot find file "vx_vxu.lib"
    error: cannot find file "vx_platform_psdk_j7_rtos.lib"
    error: cannot find file "vx_kernels_target_utils.lib"
    error: cannot find file "vx_kernels_test_kernels_tests.lib"
    error: cannot find file "vx_kernels_test_kernels.lib"
    error: cannot find file "vx_target_kernels_source_sink.lib"
    error: cannot find file "vx_kernels_host_utils.lib"
    error: cannot find file "vx_kernels_openvx_core.lib"
    error: cannot find file "vx_kernels_hwa_tests.lib"
    error: cannot find file "vx_kernels_hwa.lib"
    error: cannot find file "vx_target_kernels_vpac_nf.lib"
    error: cannot find file "vx_target_kernels_vpac_viss.lib"
    error: cannot find file "vx_target_kernels_vpac_msc.lib"
    error: cannot find file "vx_target_kernels_vpac_ldc.lib"
    error: cannot find file "vx_target_kernels_dmpac_dof.lib"
    error: cannot find file "vx_target_kernels_dmpac_sde.lib"
    error: cannot find file "vx_target_kernels_display.lib"
    error: cannot find file "vx_target_kernels_capture.lib"
    error: cannot find file "vx_target_kernels_csitx.lib"
    error: cannot find file "vx_target_kernels_j7_arm.lib"
    error: cannot find file "vx_target_kernels_display_m2m.lib"
    error: cannot find file "vx_target_kernels_openvx_ext.lib"
    error: cannot find file "vx_kernels_openvx_ext.lib"
    error: cannot find file "vx_tidl_rt.lib"
    error: cannot find file "vx_kernels_tidl.lib"
    error: cannot find file "vx_nested_kernels_tidl.lib"
    error: cannot find file "ti_imaging_dcc.lib"
    error: cannot find file "vx_kernels_imaging.lib"
    error: cannot find file "vx_target_kernels_imaging_aewb.lib"
    error: cannot find file "ti_imaging_aealg.lib"
    error: cannot find file "ti_imaging_sensordrv.lib"
    error: cannot find file "ti_imaging_ittsrvr.lib"
    error: cannot find file "app_utils_sensors.lib"
    error: cannot find file "app_utils_iss.lib"
    error: cannot find file "app_utils_sciclient.lib"
    error: cannot find file "ti.board.aer5f"
    error: cannot find file "ti.drv.uart.aer5f"
    error: cannot find file "ipc.aer5f"
    error: cannot find file "fvid2.aer5f"
    error: cannot find file "udma.aer5f"
    error: cannot find file "ti.drv.i2c.aer5f"
    error: cannot find file "ti.osal.aer5f"
    error: cannot find file "ti.kernel.freertos.aer5f"
    error: cannot find file "ti.csl.aer5f"
    error: cannot find file "ti.csl.init.aer5f"
    error: cannot find file "sciclient.aer5f"

    Is there any optimization level needs to be modified in the makefile system from sdk_builder in order to have better debugging experience in the vision apps code base ?

    Regards,

    Madhu

  • Hi Madhu,

    Basically I was trying to build the vision_apps in debug build by providing this macro "PROFILE=debug"  in my make command

    You have to build the entire sdk when you change any build flags, this will build all the required libs with debug symbols for vision_apps

    run "make sdk" inside sdk_builder

    Regards,
    Gokul