Hi
- CGT 7.2.6.
IPC 1.24.3.23
SYS/BIOS 6.33.5.46
XDCtools 3.23.2.47 - C6472
Before updating to the above build configuration, my log prints were being put in loggerBuf0. Now they are being put into "Main Logger" (same .cfg script). I found this by going to Tools->RTA->Raw Logs and reviewing the various logs that were available. I don't know how I even created "Main Logger". Can you tell me how to get the logs back into loggerBuf0?
There is also a RTASystemLog. How do I control its size?
Cheers
// Sets log_printf time to be in usec.
// todo: we should enable these in the future for the CPU to download logs to a .txt file when we get an assert.
var Agent = xdc.useModule("ti.sysbios.rta.Agent");
Agent.addSupportLogger = true;
Agent.sysbiosTaskLogging = false;
Agent.sysbiosSwiLogging = false;
Agent.sysbiosHwiLogging = false;
Agent.loadLogging = false;
Agent.transport = Agent.Transport_STOP_MODE_ONLY;
// Log_prints are turned on/off by setting the USER value below to
// RUNTIME_OFF
//
// Logging Diags_USER
// --------- ----------
// Framework 1 Includes logs generated by interaction with the host.
// Twod 2
// color 3
// Doppler/MMode 4 Combining since they will not be run at the same time.
// Error 5
// SRIO 6
var Diags = xdc.useModule('xdc.runtime.Diags');
// Set log_print masks to RUNTIME_ON so that we can turn them on/off realtime in the code.
// Eg:
// - to turn diages_USER1 off: Diags_setMask( "xdc.runtime.Main-1" );
// - to turn diages_USER1 on: Diags_setMask( "xdc.runtime.Main+1" );
Main.common$.diags_USER1 = Diags.RUNTIME_ON;
Main.common$.diags_USER2 = Diags.RUNTIME_ON;
Main.common$.diags_USER3 = Diags.RUNTIME_ON;
Main.common$.diags_USER4 = Diags.RUNTIME_ON;
Main.common$.diags_USER5 = Diags.RUNTIME_ON;
Main.common$.diags_USER6 = Diags.RUNTIME_ON;
/* Turn on USER1 logs in Task module */
Task.common$.diags_USER1 = Diags.RUNTIME_ON;
Task.common$.diags_USER2 = Diags.RUNTIME_ON;
Task.common$.diags_USER3 = Diags.RUNTIME_ON;
Task.common$.diags_USER4 = Diags.RUNTIME_ON;
Task.common$.diags_USER5 = Diags.RUNTIME_ON;
Task.common$.diags_USER6 = Diags.RUNTIME_ON;
var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var loggerBuf0Params = new LoggerBuf.Params();
loggerBuf0Params.numEntries = 256;
loggerBuf0Params.instance.name = "loggerBuf0";
loggerBuf0 = LoggerBuf.create(loggerBuf0Params);
Program.global.hLogger = loggerBuf0;
Main.common$.logger = Program.global.hLogger;