How to use the function printf on TrueSTUDIO
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-03-16 01:14 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-03-16 05:09 AM
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 ...