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.

System_printf()

Other Parts Discussed in Thread: AM3359

Hi,

My hello_world attached works pretty well and I can show the strings printed by System_printf() over the RTOS Object View (ROV) SysMin OutputBuffer after suspending the application.

But I would like to show the strings in real-time on the console. Is that somehow possible?

Thanks,

Marco

ICE AM3359 v2

5.5.077 CCS

6.35.04.50 SYSBIOS

3.25.03.72 XDCtools

2.22.3.20 NDK

1.3.1.08 UIA

5228.4375.hello_world.rar

  • Moving to TI-RTOS forum.

    Best regards,
    Miroslav

  • Hi Marco,


    There are 2 different approaches you can take. The first is to add a System_flush() call after each System_printf(). This will flush the SysMin buffer to the CIO console. The second approach is to change the system provider from SysMin to SysStd. With SysStd, all System_printf() calls print directly to the CIO console. Here's some example cfg code showing how to change the system provider:

    app.cfg:

    var SysStd = xdc.useModule('xdc.runtime.SysStd');
    var System = xdc.useModule('xdc.runtime.System');
    
    System.SupportProxy = SysStd;

    Best,

    Ashish