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: Text Display through openvx

Part Number: TDA4VM
Other Parts Discussed in Thread: DRA829

Hi  Team,

We are trying to display the texts through TIOVX Framework. So we have used the below API's.

     appGrpxInitParamsInit(&grpx_prms, _context);

     grpx_prms.draw_callback = app_draw_graphics; 

     appGrpxInit(&grpx_prms); 

But we have faced the hangup issue while calling the appGrpxInit(&grpx_prms); 

Kindly guide us to proceed further.

On the TDA4x board, I used the packages listed below.

QNX SDP7.1 BSP for Texas instrument Jacinto 7 J721E (DRA829/TDA4xM )
QNX Software Development platform 7.1
ti-processor-sdk-qnx_j721e_07_03_00.tar.gz
ti-processor-sdk-rtos-j721e-evm-07_03_00_07.tar.gz

Regards

Raj

  • Hi Raj,

    Could you send the logs of your application and were you able to point out where in appGrpxInit() is the code getting stuck?

    Regards,
    Nikhil

  • The application became stuck as a result of the following API.1. appGrpxInit (app_grpx_init_prms_t *prm)appPerfStatsResetAll();

    After commenting out this API (appPerfStatsResetAll()), we didn't face the stuck issue while calling the appGrpxInit.

    But we have faced some other hangup issues in the below sequence.

    2. void appGrpxDrawDefault(Draw2D_Handle *draw2d_obj, Draw2D_BufInfo *draw2d_buf_info, uint32_t update_type) => appGrpxShowCpuLoad(startx, starty);

        While calling this API (appGrpxShowCpuLoad => appGrpxGetCpuLoad (obj)), the appGrpxTaskMain thread got blocked.

    bmp.bmpIdx = DRAW2D_BMP_IDDRAW2D_BMP_IDX_DOF_COLOUR_MAPX_DOF_COLOUR_MAP;    

    We are not able to find out the value of macro DRAW2D_BMP_IDDRAW2D_BMP_IDX_DOF_COLOUR_MAPX_DOF_COLOUR_MAP . it is really needed and what is the purpose

  • Hi Raj,

    Looks like the graph is getting stuck in the perf stats functions that undergoes Remote service routines to other cores. If this remote service routine doesn't go through, it would result in hangs.
    This is mostly seen when the memory related changes are not done correctly.
    Could you please confirm if you have done any memory changes or memory configurations that could affect the IPC communication?

    Please check and confirm if the IPC communication between the cores are still intact.

    Could you send the logs of your application

    As requested, please share the logs after running "vision_apps_init.sh" (We could get to know if IPC is broken) and also please share you application logs.

    We are not able to find out the value of macro DRAW2D_BMP_IDDRAW2D_BMP_IDX_DOF_COLOUR_MAPX_DOF_COLOUR_MAP

    I think there is some mistyping here (Please check as I do not see this in SDK)?
    Are you referring to the Macro DRAW2D_BMP_IDX_DOF_COLOUR_MAP ?
    This could be found in vision_apps/utils/draw2d/include/draw2d.h.
    It is used to select the dof color map from vision_apps/utils/draw2d/src/draw2d_dof_colourmap.c

    Regards,
    Nikhil

  • I am trying to display the text in blue. but not able to display the text "HEADING" in the blue color.

    Please find the code snippet as shown below.

    /* blue color heading */
    Draw2D_setFontColor(RGB888_TO_RGB565(0, 0, 255), RGB888_TO_RGB565(0, 0, 0), RGB888_TO_RGB565(0, 0, 0));

    sHeading.fontIdx = 2;
    Draw2D_drawString(handle, 10, 100, "HEADING", &sHeading);

    Draw2D_resetFontColor()

    Kindly help me to resolve this issue

  • Hi,

    1. Has the above issue regarding grpx resolved?
    2. May I know if you doing this code snippet inside grpx or separately?
    3. If separately, then have you created the handle and did setBufInfo to it?
    4. Could you share your buf info struct values that you have assigned?
    5. What is the display format you are using?

    Regards,
    Nikhil