Other Parts Discussed in Thread: SYSBIOS
Hi All,
I am trying to enable loggin by using Log_printX functions. However, I have a problem with dynamically allocated strings like in the post http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/133257/488639.aspx#488639. I read it and also read the tutorial about MCSA (UIA). There is a suggested solution fotr that, but I think I am doing something wrong because it does not work for me. My test code and .cfg part related with that are below:
--------------------------------------------------------------------------------------
char text1[15];
sprintf(text1, "%s", "allocated");
LogSnapshot_writeString(0, "text1 control", text1, strlen(text1));
Log_print1(xdc_runtime_Diags_ENTRY, "%s", (IArg)text1);
--------------------------------------------------------------------------------------
var Log = xdc.useModule('xdc.runtime.Log');
var LogSnapShot = xdc.useModule('ti.uia.runtime.LogSnapshot');
var Logger = xdc.useModule('ti.uia.runtime.LoggerCircBuf');
var Snapshot = xdc.useModule('ti.uia.events.UIASnapshot');
var LoggerParams = new Logger.Params();
LoggerParams.transferBufSize = 32768;
logger = Logger.create(LoggerParams);
logger.instance.name = "Logar";
Main.common$.logger = logger;
Main.common$.diags_ENTRY = Diags.ALWAYS_ON;
Main.common$.diags_USER1 = Diags.ALWAYS_ON;
Main.common$.diags_EXIT = Diags.ALWAYS_ON;
--------------------------------------------------------------------------------------
Then, when I look at the result via Tools->MCSA->Live all I can get is meaningless characters. I am using...
CCS 5.0.3.00028
UIA 1.00.01.17
SYS/BIOS 6.32.04.49
MCSDK 2.0.3.15
XDCTools 3.22.03.41


