cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the function printf on TrueSTUDIO

zhentong liu
Associate
Posted on March 16, 2018 at 09:14

The function printf is not work on TrueSTUDIO, but the same code is wrok on KEIL

1 REPLY 1
Posted on March 16, 2018 at 13:09

They are different compilers - with different runtime support libraries - so it is not to be expected that this would work the same way.

You need to search the TrueStudio documentation (or, more specifically, the GCC documentation) to find out how to do this in 

TrueStudio (which used GCC).

Or you could just sprintf() to a buffer, and write a simple put_string() to send that string wherever you want it ...