cancel
Showing results for 
Search instead for 
Did you mean: 

Where does the output of 'sprintf' goes to ?

ranran
Senior II

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

1 ACCEPTED SOLUTION

Accepted Solutions
BCoch
Senior
3 REPLIES 3
BCoch
Senior

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

ranran
Senior II

Oh, I got confused... Thanks

Chris1
Senior III

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.