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.

How to use slog in omx demos?

Hi everyone ,

  I am using EZSDK_5.02.02.60, and the omx version is 05_02_00_15.

  I want to use slog to debug my omx program.

  I followed the steps from this page --> http://processors.wiki.ti.com/index.php/Using_slog_in_EZSDK

Step1: Each module (domx, ldrmemcfg (DCMM), etc...) defines a flag (USE_SLOG_PRINT) which needs to be enabled, by default this flag is USE_SLOG_PRINT=0

To enable this open makefile in appropriate module and set this slag to 1

Ex: $(OMX_ROOT)/packages/ti/omx/domx/makefile


But in the makefile, is said USE_SLOG_PRINT is forced to 0.

Line 41: #Note: USE_SLOG_PRINT=0 is forced. No other value should be used.
Line 42: ifeq ($(CORE),a8host)
Line 43: CFLAGS_LOCAL_a8host += -D_LOCAL_CORE_a8host_ -DUSE_SLOG_PRINT=0

If I set it to 1, errors occur when making omx.

So, how to get the debug messages? loggerSMDump?

Regards,

Lei

  • There's no need to use SLOG for getting logs from A8 side of the OMX. Instead, can you do the following modification to get logs?

    In packages\ti\omx\domx\domx_util.h, in the following part of the code (towards end of file) enables LINUX logging

    #ifndef __ti__
    //#define ENABLE_LINUX_LOGGING             <=== Uncomment this line.
    #ifdef ENABLE_LINUX_LOGGING
    #define Log_print0(x,y) printf(y);printf("\n")
    #define Log_print1(x,y,z1) printf(y,z1);printf("\n")
    #define Log_print2(x,y,z1,z2) printf(y,z1,z2);printf("\n")
    #define Log_print3(x,y,z1,z2,z3) printf(y,z1,z2,z3);printf("\n")
    #define Log_print4(x,y,z1,z2,z3,z4) printf(y,z1,z2,z3,z4);printf("\n")
    #define Log_print5(x,y,z1,z2,z3,z4,z5) printf(y,z1,z2,z3,z4,z5);printf("\n")
    #define Log_print6(x,y,z1,z2,z3,z4,z5,z6) printf(y,z1,z2,z3,z4,z5,z6);printf("\n")
    #endif
    #endif

    regards,

    Tarakesh.

  • Thank you Tarakesh.

    I will try it.