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.

printf issues in TI-RTOS TivaC 2.10.1.38 for TM4C1294NCPDT

Hi

I am facing some issues on use printf() in my driver program.

When I try to print something, the printout only appears if another thread send printouts throug printf. In other words, my first printout remains in buffer and is flushed out only when another thread print out.

I tried fflush(stdout) just after printf(), but, no printouts still.

I changed SysMin to SysStd and the same behaviour remains.

It is important to me to use printf(), because I need to print some buffers before and after UDP transmissions and I can not do this.

Is there some trick to use printf?

Sergio

  • Sergio,

    Do you need to use printf(), or can you use System_printf()? 

    The different printf() options and pros/cons are described in  “3.2 Generating printf Output” in the TI-RTOS User’s Guide (www.ti.com/.../spruhd4g.pdf).

    And when you were using SysMin, did you try System_flush() versus fflush()?

    Thanks,
    Scott

  • Hi Scott

    I found my problem.

    As I couldn't install uart console example in my windows 8.1 ( CCS v6.1 ) due unknown reasons ( XML issues ), I just replicated the files into my project, but forgot to see which system was used ( SysCallback instead SysMin ), so, I messed up a little bit my application ( SysMin).

    But, turn SysMin into SysCallback is a very complicated task, because there are lot of things to setup, so, as I have an old installation of CCS V6.0.1 in another computer under Windows7, I just installed uart console into it and copied the folder to my Windows 8.1 computer and imported it successfully into CCS v6.1.

    After that, I could see the complete environment to get printf and System_printf printing to UART fully operational.

    I will try, starting from uart console, to get my application working with UDP sockets.

    Thanks a lot Scott.

    Sergio