This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6748: No output when using Log_info1

Genius 13655 points
Part Number: TMS320C6748
Other Parts Discussed in Thread: SYSBIOS

Hello Champs,


sys/bios: bios_6_76_03_01

uia: uia_2_30_01_02

Customer failed to use Log_info1 API, there is no output.  But System_printf can output information.

He has added logger in cfg

var Defaults = xdc.useModule('xdc.runtime.Defaults');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Error = xdc.useModule('xdc.runtime.Error');
var Log = xdc.useModule('xdc.runtime.Log');
var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var Main = xdc.useModule('xdc.runtime.Main');
var Memory = xdc.useModule('xdc.runtime.Memory')
var SysMin = xdc.useModule('xdc.runtime.SysMin');
var System = xdc.useModule('xdc.runtime.System');
var Text = xdc.useModule('xdc.runtime.Text');

var BIOS = xdc.useModule('ti.sysbios.BIOS');
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
var Swi = xdc.useModule('ti.sysbios.knl.Swi');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var LoggerRunMode = xdc.useModule('ti.uia.loggers.LoggerRunMode');
var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');

/*
* Minimize exit handler array in System. The System module includes
* an array of functions that are registered with System_atexit() to be
* called by System_exit().
*/
System.maxAtexitHandlers = 4;


/*
* The BIOS module will create the default heap for the system.
* Specify the size of this default heap.
*/
BIOS.heapSize = 0x1000;

/*
* Build a custom SYS/BIOS library from sources.
*/
BIOS.libType = BIOS.LibType_Custom;

/* System stack size (used by ISRs and Swis) */
Program.stack = 0x2000;

/* Circular buffer size for System_printf() */
SysMin.bufSize = 0x200;

/*
* Create and install logger for the whole system
*/
var loggerBufParams = new LoggerBuf.Params();
loggerBufParams.numEntries = 16;
var logger0 = LoggerBuf.create(loggerBufParams);
Defaults.common$.logger = logger0;
Main.common$.diags_INFO = Diags.ALWAYS_ON;

System.SupportProxy = SysMin;

LoggingSetup.sysbiosSwiLogging = true;
LoggingSetup.sysbiosSemaphoreLogging = true;
LoggingSetup.loggerType = LoggingSetup.LoggerType_JTAGRUNMODE;
var task0Params = new Task.Params();
task0Params.instance.name = "task0";
Program.global.task0 = Task.create("&fun_task0", task0Params);
var task1Params = new Task.Params();
task1Params.instance.name = "task1";
Program.global.task1 = Task.create("&fun_task1", task1Params);

main.c

#include <xdc/std.h>

#include <xdc/runtime/System.h>
#include <ti/sysbios/BIOS.h>

#include <xdc/runtime/Log.h>
#include <ti/sysbios/knl/Task.h>

/*
* ======== main ========
*/

void fun_task0(void);
void fun_task1(void);
Void main()
{
System_printf("hello world\n");

BIOS_start();
}

void fun_task0(void)
{
Int count = 0;
while(count<10)
{
Log_info1("Task0 is doing %d\n",count);
Task_yield();
count++;
}
BIOS_exit(0);
}

void fun_task1(void)
{
Int count = 0;
while(count<10)
{
Log_info1("Task1 is doing %d\n",count);
Task_yield();
count++;
}
BIOS_exit(0);
}

Thanks.
Rgds
Shine


Thanks.
Rgds
Shine