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/TDA2PXEVM: TDA2PXEVM

Part Number: TDA2PXEVM


Tool/software: TI C/C++ Compiler

Hi ,

I am facing the assertion error in custom algorithm plugin creation (in rtos).

The usecase is

NullSource (A15) -> Decode ->  VPE -> Alg_MyFrameCopy (DSP1) -> Display

The output window is

[HOST] [HOST  ]     64.601476 s:  IPC_OUT_0   : Create in progress !!!         
 [HOST] [HOST  ]     64.601537 s:  IPC_OUT_0   : Create Done !!!                
 [HOST] [IPU2  ]     64.601720 s:  IPC_IN_0   : Create in progress !!!          
 [HOST] [IPU2  ]     64.602970 s:  IPC_IN_0   : Create Done !!!                 
 [HOST] [IPU2  ]     64.603397 s:  DECODE: Create in progress ... !!!           
 [HOST] [IPU2  ]     64.813060 s:  DECODE: Creating CH0 of 1280 x 720 [1] [0],ta
rget bitrate = 10000 Kbps ...                                                   
 [HOST] [IPU2  ]     64.813975 s:  DECODE: All CH Create ... DONE !!!           
 [HOST] [IPU2  ]     64.816019 s:  DECODE: Create ... DONE !!!                  
 [HOST] [IPU2  ]     64.816446 s:  VPE: Create in progress !!!                  
 ASSERT (TF_SVS_priv.c|TF_SVS_Create|190)                                       
 [HOST] [DSP1  ]     64.951503 s:  IPC_IN_0   : Create in progress !!!          
 [HOST] [DSP1  ]     64.952144 s:  IPC_IN_0   : Create Done !!!                 
 [HOST] [DSP1  ]     64.952357 s:  ALG: ERROR: Invalid alg ID specified  (algId
= 43) !!!                                                                       
 [HOST] [IPU2  ]     64.949978 s:  VPE: Loading Down-scaling Co-effs            
 [HOST] [IPU2  ]     64.950222 s:  VPE: Co-effs Loading ... DONE !!!            
 [HOST] [IPU2  ]     64.950436 s:  VPE: Create Done !!!                         
 [HOST] [IPU2  ]     64.950832 s:  IPC_OUT_0   : Create in progress !!!         
 [HOST] [IPU2  ]     64.951168 s:  IPC_OUT_0   : Create Done !!!


In one of the TI answer links it was suggested to do

---------------------------------------------------------------------

if(algId>=ALGORITHM_LINK_ALG_MAXNUM)
   {
       Vps_printf(" ALG: ERROR: Invalid alg ID specified "
                  " (algId = %d) !!!\n", pObj->algId);

       status = SYSTEM_LINK_STATUS_EINVALID_PARAMS;
   }

Print the value of "ALGORITHM_LINK_ALG_MAXNUM" in Vps_printf

---------------------------------------------------------------------

In the above if loop, I added  Vps_printf(" ALG: ERROR: Max link number "
                   " (algId = %d) !!!\n", ALGORITHM_LINK_ALG_MAXNUM);

But in my case its found not to print anything. Even the file doesn't seem to build.

The custom algorithm plugin is reflected in system_cfg.h.

Can anyone suggest a solution?