Skip to main content
li-fan
Associate
December 8, 2005
Question

printf function in ST Visual Develop

  • December 8, 2005
  • 3 replies
  • 969 views
Posted on December 08, 2005 at 06:29

printf function in ST Visual Develop

This topic has been closed for replies.

3 replies

li-fan
li-fanAuthor
Associate
December 6, 2005
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 III
December 7, 2005
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 II
December 8, 2005
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)