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.

Config Script isn't consistent between Example programs

Other Parts Discussed in Thread: SYSBIOS

Hi,

I'm using the EK-TM4C1294 Connected LaunchPad and just testing the example programs provided by TI Resource Explorer.

The GPIO Example works as intended and outputs to Console. As does the Watchdog Example.

The UARTconsole example does NOT output to Console. I believe should...

I noticed that the difference is in the .cfg Script.

The examples that do output to console have the following:

/* ================ System configuration ================ */
var SysMin = xdc.useModule('xdc.runtime.SysMin');
System.SupportProxy = SysMin;
SysMin.bufSize = 128;

/* Enable Semihosting for GNU targets to print to CCS console */
if (Program.build.target.$name.match(/gnu/)) {
var SemiHost = xdc.useModule('ti.sysbios.rts.gnu.SemiHostSupport');
}

Also, in the main program uartconsole.c they are missing the line:

/* SysMin will only print to the console when you call flush or exit */
System_flush();

These are 2 issues I see with the code at the moment...

Is there a general guide for setting up config scripts for Ti-RTOS? The script above isn't very intuitive

  • Hi Stephen,

    The UART console example is not intended to write directly to CIO, it is intended to show how a C stdio console can be implemented using the UART driver.  To run the example you need to open a COMPORT to the device and send it commands.  Additionally, the example uses USB to extract target usage information which can be displayed in System Analyzer.  Please see the uartconsole_readme.txt in the project for more details.

    Thanks,

    -- Emmanuel