Hi,

I followed the CE Application Developer User's Guide (Section 4.6) to enable 
the trace utility for the DSP side
but I got linked errors compiling the CE server (undefined errors to 
TraceUtil_start and TraceUtil_stop).  
For example, I want to enable DSP tracing in the all_codecs server; so per 
section 4.6.2, I added #include
<ti/sdo/ce/utils/trace/TraceUtil.h>, and the calls to TraceUtil_start and 
TraceUtil_stop in main.c in 
servers/all_codecs.  Per 4.6.3, I all added var LogServer = 
xdc.useModule('ti.sdo.ce.bioslog.LogServer'); to a
ll.cfg.  Can anyone please tell me what I'm doing wrong.  Thanks!

Regards,
Andy


-------------------------------- errors log 
-----------------------------------------------
undefined                        first referenced
 symbol                              in file
---------                        ----------------
_TraceUtil_start                 package/cfg/all/main.o64P
_TraceUtil_stop                  package/cfg/all/main.o64P
>>   error: symbol referencing errors - 'all.x64P' not built
gmake: *** [all.x64P] Error 1
gmake: *** [all] Error 2

-------------------------------- servers/all_codecs/main.c 
--------------------------------
#include <xdc/std.h>
#include <ti/sdo/ce/CERuntime.h>
#include <ti/sdo/ce/trace/gt.h>
#include <ti/sdo/ce/utils/trace/TraceUtil.h>

/* trace info: module name, mask */
static GT_Mask gtMask = {0,0};
/*
 *  ======== main ========
 */
Void main(Int argc, Char *argv[])
{
    /* init Codec Engine */
    CERuntime_init();

    // enable DSP trace
    TraceUtil_start("servers.all_codecs");
    
    /* init trace */
    GT_init();
    /* create a mask to allow a trace-print welcome message below */
    GT_create(&gtMask, "servers.all_codecs");
    /* ...and initialize all masks in this module to "on" */
    GT_set("servers.all_codecs=01234567");
    /* ... and finally, if an override is passed in via argv[1], set _that_ */
    if (argc > 1 && argv[1] != NULL) {
        GT_set(argv[1]);
    }
    GT_3trace(gtMask, GT_4CLASS, "main> "
        "Welcome to DSP server's main. (argc=%d, argv[0]='%s', argv[1]='%s')\n",
        argc, argv[0], (argc > 1) ? argv[1] : "(null)" );

    TraceUtil_stop();
}

--------------------------------------- 
servers/all_codecs/all.cfg-------------------------------------------
.
.
.
var LogServer = xdc.useModule('ti.sdo.ce.bioslog.LogServer');

/* set up OSAL */
var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
osalGlobal.runtimeEnv = osalGlobal.DSPLINK_BIOS;
/* get various codec modules; i.e., implementation of codecs */
var VIDDEC_COPY = xdc.useModule('codecs.viddec_copy.VIDDEC_COPY');
var VIDENC_COPY = xdc.useModule('codecs.videnc_copy.VIDENC_COPY');
var AUDDEC_COPY = xdc.useModule('codecs.auddec_copy.AUDDEC_COPY');
var AUDENC_COPY = xdc.useModule('codecs.audenc_copy.AUDENC_COPY');
var SPHENC_COPY = xdc.useModule('codecs.sphenc_copy.SPHENC_COPY');
var SPHDEC_COPY = xdc.useModule('codecs.sphdec_copy.SPHDEC_COPY');
var IMGDEC_COPY = xdc.useModule('codecs.imgdec_copy.IMGDEC_COPY');
var IMGENC_COPY = xdc.useModule('codecs.imgenc_copy.IMGENC_COPY');
var SCALE       = xdc.useModule('codecs.scale.SCALE_TI');
/*
 *  ======== Server Configuration ========
 */
var Server = xdc.useModule('ti.sdo.ce.Server');
Server.threadAttrs.stackSize = 2048;
Server.threadAttrs.priority = Server.MINPRI;
.
.
.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to