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.

Compiler/TDA3XEVM: problem with running usecase with new added algoplugin

Part Number: TDA3XEVM

Tool/software: TI C/C++ Compiler

HI

I am working on TDA3, I add an algo plugin , and recompiled the vision sdk.

After I build and put the appimage on sd card, and boot,

the cmdline shows like the following.., and it stops at  " Jumping to IPU1 CPU0 App".

What would be the problem?

?
 TDA3xx SBL Boot

 Identified 15X15 Silicon

 DPLL Configuration Completed

 Clock Domain Configuration Completed

 Module Enable Configuration Completed

 TI EVM PAD Configuration Completed

 DDR Configuration Completed

 TDA3xx SOC Init Completed

 App Image Download Begins

 SD Boot - file open completed successfully

 IPU1 CPU0 Image Load Completed

 IPU1 CPU1 Image Load Completed

 DSP1 Image Load Completed

 DSP2 Image Load Completed

 EVE1 Image Load Completed

 App Image Download Completed

 EVE MMU configuration completed

*****************************************************************

 32K Timer is used to measure cycles, divide by 32K to get time in seconds

 Reset to SBL Init Cycles - 564  (17.21 ms)

 SBL Initial Config Cycles - 302  (9.21 ms)

 SOC Init Cycles - 470  (14.34 ms)

 DDR Config Clock Cycles - 229  (6.98 ms)

 App Image Load Cycles - 505223  (15418.18 ms)

 Slave Core Bootup Cycles - 169  (5.15 ms)

 SBL Boot-up Cycles - 506396  (15453.97 ms)

 Time at which SBL started IPU1_0 - 506960  (15471.19 ms)

*****************************************************************

 Jumping to IPU1 CPU1 App

 Jumping to IPU1 CPU0 App

  • HI

    I  find that , after I removed  the new algo 's initPlugin from app_init_dsp.c

    The usecase menu works well,

    #ifdef ALG_AlgDsp
            //AlgorithmLink_algoDsp_initPlugin();
    #endif

    so, there is something wrong with the plugin Init, but how can I locate the problem?

    I modified this algo from frameCopyAlgoLocalDma.

    Following is the initPulgin Function:

    Int32 AlgorithmLink_algoDsp_initPlugin()
    {
        AlgorithmLink_FuncTable pluginFunctions;
        UInt32 algId = (UInt32)-1;

        pluginFunctions.AlgorithmLink_AlgPluginCreate =
            AlgorithmLink_algoDspCreate;
        pluginFunctions.AlgorithmLink_AlgPluginProcess =
            AlgorithmLink_algoDspProcess;
        pluginFunctions.AlgorithmLink_AlgPluginControl =
            AlgorithmLink_algoDspControl;
        pluginFunctions.AlgorithmLink_AlgPluginStop =
            AlgorithmLink_algoDspStop;
        pluginFunctions.AlgorithmLink_AlgPluginDelete =
            AlgorithmLink_algoDspDelete;

    //#ifdef BUILD_DSP
        algId = ALGORITHM_LINK_DSP_ALG_algoDsp;
    //#endif
        Vps_printf("### AlgorithmLink_algoDsp_initPlugin  algId = %d\n",algId);

        AlgorithmLink_registerPlugin(algId, &pluginFunctions);

        return SYSTEM_LINK_STATUS_SOK;
    }

    Thanks!

  • Hi,

    What is the value of ALGORITHM_LINK_DSP_ALG_algoDsp, you are setting.

    Please make sure value of ALGORITHM_LINK_DSP_ALG_algoDsp should be  less than ALGORITHM_LINK_DSP_ALG_MAXNUM.

    Regards,

    Anuj

  • HI

    Thanks!  

    Currently ,the value of ALGORITHM_LINK_DSP_ALG_algoDsp  is larger than ALGORITHM_LINK_DSP_ALG_MAXNUM.

    Can I modify the value of ALGORITHM_LINK_DSP_ALG_MAXNUM?

  • Hi,

    Yes you can modify.

    Whenever you add any new alg link then keep its id value as ALGORITHM_LINK_DSP_ALG_MAXNUM and increment value of ALGORITHM_LINK_DSP_ALG_MAXNUM by 1.

    Regards,

    Anuj