Other Parts Discussed in Thread: SYSBIOS
Hi,
I am using UIA on C6678 with single image loaded to all 8 cores. My application runs on evm6678l.
My configuration is like this:
SYS/BIOS 6_34_02_18
ipc_1_25_00_04
pdk_C6678_1_1_2_5
uia_1_01_01_14
When I debug my application I can see that 3 Log_info statements are called, but when I try to see messages through "System Analyzer Live Session" there are 2 messages shown (instead it should be 3) and the 2 messages shown are exactly the same. I am wondering if I am overwriting messages of different cores. I have added the following configuration to my cfg file as the user guide says. I am allocating data on DDR.
// UIA start //////////////////////////////////////////////////////////////////
// Added from SA Tutorial #4B
/* ================ Logger configuration ================ */
/*
* The target's Log records are read while the target is running. Note: this mode
* is only supported for CPUs that support real-time JTAG accesses such as
* those in the C6X family (e.g. C64X+ and C66 CPUs).
*
* Configuration done by the application is still honored (e.g. setting
* up the common$.diags mask).
*
* Please refer to the ti.uia.sysbios.LoggingSetup module for more
* details and configuration options.
*/
Timestamp = xdc.useModule('xdc.runtime.Timestamp');
var LoggerCircBuf = xdc.useModule('ti.uia.runtime.LoggerCircBuf');
var loggerCircBufParams = newLoggerCircBuf.Params();
loggerCircBufParams.transferBufSize = 2048;
loggerCircBufParams.numCores = 8;
/* must also place memory section via Program.sectMap */
loggerCircBufParams.bufSection = ".loggerCircBuffer";
var logger = LoggerCircBuf.create(loggerCircBufParams);
logger.instance.name = "Load Logger";
var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
LoggingSetup.eventUploadMode = LoggingSetup.UploadMode_JTAGRUNMODE;
LoggingSetup.loadLoggerSize = 1024;
LoggingSetup.mainLoggerSize = 32768;
LoggingSetup.sysbiosLoggerSize = 32768;
LoggingSetup.loadLogger = logger;
// SA Tutorial 4 changes
LoggingSetup.sysbiosTaskLogging = false;
LoggingSetup.loadLogging = false;
var Load = xdc.useModule('ti.sysbios.utils.Load');
Load.windowInMs = 50;
/* Bring in the LogSync module, and configure it so that
* event correlation is enabled even though we are using
* JTAG as a transport. */
var LogSync = xdc.useModule('ti.uia.runtime.LogSync');
LogSync.enableEventCorrelationForJTAG = true;
Program.sectMap[".loggerCircBuffer"] = "DDR3";
/* Register the idle function hook */
var Idle = xdc.useModule('ti.sysbios.knl.Idle');
Idle.addFunc('&myIdleFunc');
// UIA end//////////////////////////////////////////////////////////////////