Skip to main content
ranran
Senior
Dec 12, 2018 5:56 PM UTC
Solved

Where does the output of 'sprintf' goes to ?

Hello,

I use stm32cubeH7 examples.

I find in some of them call to sprintf, yet I don't understand where is the output of the sprintf goes to:

  1. I tried opening the "STMicroelectronics STLink virtual com port" - nothing is printed here
  2. I also tried to search for a debug console window in IAR - I did not find such

I tried to see where sprintf is defined in code, and also did not find the relevant c file ( it seems to be part of IAR C compiler files)

Thanks for any idea,

ran

This topic has been closed for replies.
BCoch
BCochBest answer
Senior
Dec 12, 2018 6:00 PM UTC

It goes to the first argument: http://lmgtfy.com/?q=sprintf

3 replies

BCoch
BCochBest answer
Senior
Dec 12, 2018 6:00 PM UTC

It goes to the first argument: http://lmgtfy.com/?q=sprintf

ranran
ranranAuthor
Senior
Dec 12, 2018 6:03 PM UTC

Oh, I got confused... Thanks

Chris1
Associate II
Dec 12, 2018 7:46 PM UTC

printf output can be observed in the IAR Terminal I/O window, provided that you have built the project with Semihosted Library low-level interface option.