Hello everyone!
I have a question . How can let debug message from omxcore?
SDK:
ti-ezsdk_dm816x-evm_5_04_00_11.
Requirement:
How can this message output?(Log_print1(), Log_print2(), etc.....)
\ti-ezsdk_dm816x-evm_5_04_00_11\component-sources\omx_05_02_00_38\src\ti\omx\omxcore\src\omx_core.c (Line 135)
OMX_ERRORTYPE OMX_Init (void)
{
OMX_ERRORTYPE tError = OMX_ErrorNone;
Log_print1 (Diags_ENTRY, "Entering %s: (void)\n", (xdc_IArg) __FUNCTION__);
if (OMX_FALSE == OMX_Core_Context.isInitialized)
{
tError = DomxInit ();
if (OMX_ErrorNone == tError)
{
OMX_Core_Context.isInitialized = OMX_TRUE;
}
if (MultiProc_self () == DomxTypes_coreCortexA8)
{
MEMCFG_ModuleInit();
Thread_start (NULL);
}
}
Log_print2 (Diags_EXIT, "Leaving %s: retVal OMX_ERRORTYPE: %d\n",
(xdc_IArg) __FUNCTION__, tError);
return tError;
}
I had did this :
1. lookup ttyO2 output.
2.lookup telnet output .(use loggerSMDump.out 0x9E400000 0x100000 all)
3.modify the file \ti-ezsdk_dm816x-evm_5_04_00_11\component-sources\omx_05_02_00_38\src\ti\omx\omxutils\omx_utils.h(Line 838)
#ifndef __ti__
//#define ENABLE_LINUX_LOGGING
#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")
.......
modify to
#ifndef __ti__
#define ENABLE_LINUX_LOGGING
#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")
.......
But Log_print1 (Diags_ENTRY, "Entering %s: (void)\n", (xdc_IArg) __FUNCTION__) this code output message not appear.
So somebody can help me?
How can the message output? or Where to go to view information from this code?
Thank You very much!