2018-03-16 01:14 AM
The function printf is not work on TrueSTUDIO, but the same code is wrok on KEIL
2018-03-16 05:09 AM
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 ...