Other Parts Discussed in Thread: SYSBIOS
Tool/software: Code Composer Studio
I have what appears to be a common problem – no output from printf() nor from System_printf(). I posted this on the Keystone forum but it was suggested this might be a better place to ask.
I am using CCS 7.2 under Windows10. My device is the 66AK2H12 EVM. I built a new CSS project selecting SYS/BIOS → GNU Target Example Typical (w/ separate config project). Target is 66AK2H12 and compiler GNU Linaro v6.3.1. I am using the unmodified GEL file: C:\ti\ccsv7\ccs_base\emulation\boards\xtcievmk2x\gel\xtcievmk2x_arm.gel
I’ve read many postings and I seem to have checked all the suggestions but still no output. This thread is by far the most informative: e2e.ti.com/.../509743 That you Ramsey and Vic for the very detailed, clear and concise discussion. My comments below reference that closed thread. I read the comments there about a CIO Console window. I do not or can not find that. I have only a CDT Global Build Console and a CDT Build Console [my project name].
I can see in the ROV the System_printf() data ending up in the output buffer. I can see the index increasing. I can see the buffer gets cleared on System_flush() and the index reset to zero but nothing shows up on the CCS Console.
I’ve checked my app.cfg and it does have both
var SysMin = xdc.useModule('xdc.runtime.SysMin');
var System = xdc.useModule('xdc.runtime.System');
and at the bottom has
System.SupportProxy = SysMin;
I have ‘Enable CIO function use’ set. (This was the default). It says (requires setting a breakpoint) and I’m a little confused there. I read the explanation on how the data is transferred to CCS on break when data is moved to a small CIO buffer. Do I need to enable some break point to make this happen?
I don’t think the SemiHostSupport applies to me since I am using the GNU Linaro compiler but not being sure, I tried it anyway but it would not build:
C:/ti/bios_6_46_05_55/packages/ti/sysbios/rts/gnu/SemiHostSupport.c:60: undefined reference to `initialise_monitor_handles'
I would have hoped an unmodified example project would have just worked but I suspect there is something I am missing or not understanding.
I also tried adding
var SysStd = xdc.useModule('xdc.runtime.SysStd');
and setting to use that with:
//System.SupportProxy = SysMin;
System.SupportProxy = SysStd;
Other possible hints?
When I create anew project it automatically selects XDCtools version 3.50.2.20_core but I need to change it to 3.32.2.25_core otherwise it will not build. I get:
"xdc.cfg.Program : The package 'ti.sysbios.knl' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later. .xdchelp /hello_66AK2H12_CortexA line 71 C/C++ Problem"
Maybe I need modifications to my GEL file? Another problem I have (but have not yet investigated) is that I don't ever seem to return from Task_sleep(10);
I've also tried the hello_66AK2H12_CortexA example that is built from the Hello Example under the classic Resource Explorer.
Mike