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: Link statistics from the HLOS algorithm are print infinitely

Part Number: TDA2EVM5777

Hi,

I'm working make new HLOS algorithm on A15 Core.

My new algorithm works well.

However, when LinkStatistics is printed, the algorithm's LinkStatistics is print infinitely and the app is down.

If there is something different about the chain structure of my Usecase, there is a gate link in front of the algorithm link.

I tested the other algorithms in the same environment (add the gate link in front of the algorithm)

LinkStatistics is print infinitely and the app is down.

The debugging results show that OSA_resetLinkStatistics() is executed when the first frame is received.

So, if the Gate Link is in front of algorithm, LinkStatistics is not initialized, so it seems that LinkStatistics has an infinite print bug.

I resolved the bug by adding OSA_resetLinkStatistics() to the Create() function of the algorithm.

But RTOS's algorithms don't make this happen, so that's a question.

Only HLOS's algorithms have this problem.

Is my debugging results correct?

Regards,

Lee.

  • Hi,

    OSA_resetLinkStatistics() will be called depending on isFirstBufferSent parameter of the link.

    isFirstBufferSent will set to false at the create stage and when first frame is received isFirstBufferSent is set to true and OSA_resetLinkStatistics is called.

    After first frame it will not be called again.

    This link stats does not depend upon previous link or next links.

    Please take a reference of apps/src/hlos/adas/src/alg_plugins/framecopy alg link.

    Regards,

    Anuj