TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320C6748: Log_info无显示?

Part Number:TMS320C6748Other Parts Discussed in Thread:SYSBIOS

配置文件代码:

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文件代码:

#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);
}

运行结果:

System_printf有结果,Log在printf窗口没有结果输出

请问有没有修改建议?

Shine:

请看一下附件wiki网站里的添加步骤。Adding RTA to Your SYS_BIOS Application.zip

,

Owen Bao:

没有找到所需的rta.rtxd

,

Shine:

请问使用是哪个版本的sys/bios?

,

Owen Bao:

sys/bios的版本是bios_6_76_03_01

uia版本是uia_2_30_01_02

赞(0)
未经允许不得转载:TI中文支持网 » TMS320C6748: Log_info无显示?
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1