cancel
Showing results for 
Search instead for 
Did you mean: 

printf function in ST Visual Develop

li-fan
Associate II
Posted on December 08, 2005 at 06:29

printf function in ST Visual Develop

3 REPLIES 3
li-fan
Associate II
Posted on December 07, 2005 at 00:07

Hi All:

In ST Visual Develop, the compiler is Cosmic, I use Win2K.

I use printf function, but there is no any out put in the Output winodws and DOS prompt windows . Where does the message out put?

Many Thanks

Li Fan

henrik239955
Associate II
Posted on December 07, 2005 at 12:01

Hi,

The library function does not put it out at all...

You have to write your own putchar like this:

char putchar (char c)

{

/* here you put c where you want... (UART/SPI/LCD) */

return (c);

}

luca239955_st
Associate III
Posted on December 08, 2005 at 06:29

What Bood writes is correct (there is an old thread where all the details about how to rediret printf are explained), but I suspect it will not solve the OP problem; how the printf output is captured by the debugger / simulator is a question related to the debugger itself, in this case STVD7.

Hope it helps.

Luca (Cosmic)