printf function in ST Visual Develop
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-12-07 9:29 PM
Posted on December 08, 2005 at 06:29
printf function in ST Visual Develop
Labels:
- Labels:
-
Legacy products
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-12-06 3:07 PM
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 FanOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-12-07 3:01 AM
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); }Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2005-12-07 9:29 PM
Posted on December 08, 2005 at 06:29What 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)
