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.

PROCESSOR-SDK-TDAX: [TIDL] How to enable debug trace params for TIDL(00.09.00)

Part Number: PROCESSOR-SDK-TDAX

Hello.

I could enable debug trace params for TIDL when I assign log level and callback functions

(TIDL 00.08.00)

However, the log is not printed and the dump files is not generated at TIDL 00.09.00 version.

I set the parameters such as below

Are there additional parameters for enable logs and writing dump files?

If, Please let me know how to set the parameters.

setCreateParams()
{

+ prms->traceLogLevel=1; + prms->TIDLVprintf = vprintf; + prms->traceWriteLevel = 1; + prms->TIDLWriteBinToFile = writeBinToFile;

}

Regards

  • Choi,

    Are you referring to TIDL standalone application or SDK use case?

    We have validated both log and trace dump in standalone TIDL tb.

  • Hi Kumar

    I tested TIDL standalone application of dl_demos with PC Emulation mode.

    I'm attaching the diff.

    I couldn't have any dump files(*.y files) when I execute this appliaction.

    diff --git a/apps/dl_demos/app_tidl/main.c b/apps/dl_demos/app_tidl/main.c            
    index a3238ba..76805dd 100644                                                         
    --- a/apps/dl_demos/app_tidl/main.c                                                   
    +++ b/apps/dl_demos/app_tidl/main.c                                                   
    @@ -1172,7 +1172,11 @@ static vx_user_data_object setCreateParams(vx_context context) 
                     prms->isInbufsPaded                 = 1;                             
                     prms->quantRangeExpansionFactor     = 1.0;                           
                     prms->quantRangeUpdateFactor        = 0.0;                           
    -                                                                                     
    +                prms->traceLogLevel=1;                                               
    +                prms->TIDLVprintf = vprintf;                                         
    +                prms->traceWriteLevel = 1;                                           
    +                prms->TIDLWriteBinToFile = writeBinToFile;                           
    +                prms->traceBaseName = (void *)traceName;                             
                 }                                                                        
                 else                                                                     
                 {                                                                        

    Regards.

  • Hi Kumar

    I found out traceWriteLevel was set to 0 in tivxKernelTIDLCreate().

    It is the reason why the dump files is not generated even though I set the createParams for it.

    I could get the dump files by modifying this function.

    I'll close this isssue.

    Regards.