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.

TDA2EVM5777: ALG: ERROR: No alg create function specified

Part Number: TDA2EVM5777

Hi,

I created an ALG Plugin which is a copy  with reference to framecopy and placed it in vision_sdk/hlos/examples/adas/src/alg_plugins/copy, it compiled ok. But while running the usecase it got this error

I referred The VisionSDK_DevelopmentGuide.pdf -  Algorithm Link Development and VisionSDK_UserGuide_UsecaseGen.pdf for creating and registering this ALG Plugin.

 [HOST] [IPU2  ]    239.410144 s:  CAPTURE: Create in progress !!!
 [HOST] [IPU2  ]    239.410571 s:  CAPTURE: VIP1 Slice0 PortA capture mode is [ 8-bit] !!!
 ASSERT (chains_vipSingleCam_RVC_priv.c|chains_vipSingleCam_RVC_Create|115)
 [HOST] [HOST  ]    239.532544 s:  IPC_IN_0   : Create in progress !!!
 [HOST] [HOST  ]    239.532940 s:  IPC_IN_0   : Create Done !!!
 [HOST] [HOST  ]    239.533032 s:  ALG: ERROR: No alg create function specified  (algId = 11) !!!
 [HOST] [IPU2  ]    239.531537 s:  CAPTURE: Create Done !!!
 [HOST] [IPU2  ]    239.531934 s:  IPC_OUT_0   : Create in progress !!!
 [HOST] [IPU2  ]    239.532269 s:  IPC_OUT_0   : Create Done !!!

In vision_sdk/hlos/examples/adas/src/alg_plugins/copy i have these files

CopyAlgoCpu.c  CopyLink_algPlugin.c  CopyLink_priv.h  iCopyAlgo.h

in file  CopyLink_algPlugin.c i am having

Int32 AlgorithmLink_CopyCreate(void * pObj, void * pCreateParams);
Int32 AlgorithmLink_CopyProcess(void * pObj);
Int32 AlgorithmLink_CopyControl(void * pObj, void * pControlParams);
Int32 AlgorithmLink_CopyStop(void * pObj);
Int32 AlgorithmLink_CopyDelete(void * pObj);
Int32 AlgorithmLink_CopyPrintStatistics(void *pObj, AlgorithmLink_CopyObj *pFrameCopyObj);

  • Hi Ganesh,

    please check the function AlgorithmLink_FrameCopy_initPlugin() in
    vision_sdk/hlos/examples/adas/src/alg_plugins/framecopy/frameCopyLink_algPlugin.c

    Make sure that you have similar function which registers the plugin functions (your AlgorithmLink_Copy...() functions).

    Regards,
    Yordan
  • Hi Yordan,

    Yes i have AlgorithmLink_Copy_initPlugin() function in vision_sdk/hlos/examples/adas/src/alg_plugins/copy/CopyLink_algPlugin.c
  • Hi Ganesh,

    make sure that this function gets called from AlgorithmLink_initAlgPlugins() in vision_sdk/hlos/src/links/algorithm/algorithmLink_cfg.c
    (just like AlgorithmLink_FrameCopy_initPlugin() you use as reference)

    Regards,
    Yordan
  • Hi Yordan,

    Yes it is called in AlgorithmLink_initAlgPlugins()

    Int32 AlgorithmLink_initAlgPlugins(void)
    {
    memset(gAlgorithmLinkFuncTable, 0, sizeof(gAlgorithmLinkFuncTable));

    /** For all alorithms on A15 */
    #ifdef ALG_framecopy
    AlgorithmLink_FrameCopy_initPlugin();
    #endif
    #ifdef ALG_copy
    AlgorithmLink_Copy_initPlugin();
    #endif
  • Hi
    did you add entry in \vision_sdk\include\link_api\algorithmLink.h?
    also register in
    src/links_common/algorithm/algorithmLink_cfg.c:
    Just pick on excisting Algo and grep/follow the steps

    regards, Shiju
  • Hi,

    what was the solution of your problem?
    Right now I get the same Error but for an existing Algo. I like to use the dmaSwMs algorithm.

    But since I switched vom VSDK_02_12 to VSDK_03_00 my Usecase which worked on 02_12 does not run on 03_00.
    I receive the following Error report which is similar to the one you received.

    [IPU1-0] 413.885286 s: ALG: ERROR: No alg create function specified (algId = 0) !!!
    [IPU1-0] 413.885408 s: Assertion @ Line: 166 in c:/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/apps/src/rtos/usecases/<UC>/<UC_NAME>_priv.c:
    status == SYSTEM_LINK_STATUS_SOK : failed !!!


    How have you fixed your problem? Maybe I can do related steps to fix mine.

    Best regards
    Philipp
  • Hi Philipp

    From VSDK 2.12 to 3.0 we have done some major restructuring - mainly to sepertae core SDK and demo Applications. As part of this chnage the Alg links initilization also changed and is now part of apps init.

    So please follow one of the Alg link in 3.0 and see all the integration steps

    regards, Shiju

  • Hi,

    thanks for your reply! I found my mistake:

    Whereas in my VSDK the Algorithm dmaSwMs was in some Usecase cfg.mk file allready declared. So it was included in the build.

    With VSDK 03_00 I started from scratch and so forgot to put the

    Alg_dmaSwMs=yes

    into the Usecase cfg.mk

    Problem solved.

    nevertheless Thanks!

    Regards Philipp 

  • Philipp

    Happy to hear that the issue is resolved, Thanks for the confirmation

    regards, Shiju