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.

How to set up the CCS6 environment to use Log_info1 calls

Other Parts Discussed in Thread: SYSBIOS

Hello,

I am running CCS6.0 with SYSBIOS 6.35.  I am trying to set up my environment to use a Log_info1() call but I get the following errors when I try to build:  

Is it possible that the XDC Log_Info1 API is not getting loaded?   I was able to use Log_info1() with CCS5, I'm not sure what I'm missing here in CCS6.0.  

Here are some more details:  In my main.c I use the following #include statements: 

/-----------------------------------------
// SYS/BIOS Header Files
//-----------------------------------------
#include <xdc/std.h> //XDC Tools header file required for SYSBIOS.
#include <ti/sysbios/BIOS.h> //Calling APIs like BIOS_start()
#include <xdc/runtime/Log.h> //for Log_info() calls when UIA is added
#include <xdc/cfg/global.h> //header file for statically defined objects/handles
#include <stdio.h>
#include <xdc/runtime/Timestamp.h>

Here are the first several lines of my SYSBIOS cfg script:

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 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 Boot = xdc.useModule('ti.catalog.c2800.init.Boot');
var Swi = xdc.useModule('ti.sysbios.knl.Swi');
var ti_sysbios_family_c28_Hwi = xdc.useModule('ti.sysbios.family.c28.Hwi');
var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');

Here is my logging setup: 

(You cant see the bottom here but I'm in "JTAG Stop Mode."   

Next, here is my Project -> Properties -> RTSC info: 

And here are my include files in my CCS project:

Here is my app.cfg Runtime screenshot:

Any ideas on why I'm getting this error when I try to use the Log_info1 call?

Thanks,

Rick 

  • Rick,
    the error message doesn't seem like something you would see if your include path is missing some components.
    I would check these quotes that surround the string in the Log call. Try replacing them with ASCII quotes and see if it changes anything.

  • Hi Sasha,

    I did get it to work today.  It's weird but I changed the quotes around the Log_info1 call, and that didn't work.  Then I changed the [%u] to [%4d] and it worked.  Now I change it back to [%u] and it works.  So I'm not sure what fixed it.  Sometimes when I reboot Windows problems go away.  

    Anyway, thanks for your support.

    Rick