I'm developping code under cc6 with CC2650.
I'm getting in my workbench system printf from :
System_printf("In main!\r\n");
But I do not manage to get these ones :
Log_info0("hello world"); /** called from my application code */
Log_warning1("SPI:(%p) already in use.", hwAttrs->baseAddr); /** called in SPI driver */
Here are my precompiler defines about logs :
xdc_runtime_Assert_DISABLE_ALL_DISABLE xdc_runtime_Log_DISABLE_ALL_DISABLE xdc_runtime_Log_ENABLE_ERROR xdc_runtime_Log_ENABLE_WARNING xdc_runtime_Log_ENABLE_INFO
I've tried many rtsc configuration in my .cfg fille...
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var Types = xdc.useModule('xdc.runtime.Types');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Error = xdc.useModule('xdc.runtime.Error');
var Log = xdc.useModule("xdc.runtime.Log");
var Main = xdc.useModule('xdc.runtime.Main');
.....
/* logs to workbench */
var SysStd = xdc.useModule('xdc.runtime.SysStd');
System.SupportProxy = SysStd;
/* Uart printout */
/*var Idle = xdc.useModule('ti.sysbios.knl.Idle');
Idle.addFunc('&uartPrintf_flush');
SysCallback.putchFxn = "&uartPrintf_putch";*/
Defaults.common$.diags_INTERNAL = Diags.ALWAYS_ON;
Main.common$.diags_ASSERT = Diags.ALWAYS_ON;
Main.common$.diags_INTERNAL = Diags.ALWAYS_ON;
//Main.common$.diags_USER1 = Diags.ALWAYS_ON;
//Main.common$.diags_USER2 = Diags.ALWAYS_ON;
//Main.common$.diags_USER3 = Diags.ALWAYS_ON;
//Main.common$.diags_USER4 = Diags.ALWAYS_ON;
//Main.common$.diags_USER5 = Diags.ALWAYS_ON;
//Main.common$.diags_USER6 = Diags.ALWAYS_ON;
//Main.common$.diags_INFO = Diags.ALWAYS_ON;
Main.common$.diags_INFO = Diags.ALWAYS_ON;
Main.common$.diags_STATUS = Diags.ALWAYS_ON;
/* Main.common$.logger = null; */
//Task.common$.diags_INFO = Diags.ALWAYS_ON;
//Task.common$.diags_STATUS = Diags.ALWAYS_ON;
/* use the LoggerSys ILogger service provider */
//var Logger = xdc.useModule("xdc.runtime.LoggerSys");
/* create and bind a logger for all non-module code */
//Main.common$.logger = Logger.create();
without any success. How can I enable these logs?
Moreover, if I need to use assertion in non-XDC modules. What should I use? What configuration?
Lah
