Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Printf and debuging fun.... (http://www.chiefdelphi.com/forums/showthread.php?t=33413)

MV_Hirsch 25-01-2005 22:21

Printf and debuging fun....
 
I need some help.... I cant get output from all the printfs in my code...
Any and all help is appreciated!
Much Thankx~
Team 1458

steven114 25-01-2005 22:43

Re: Printf and debuging fun....
 
Seems like a silly thing to ask, but you do have the serial cable connected properly and IFI loader open, right?

Chris Bright 25-01-2005 22:55

Re: Printf and debuging fun....
 
Quote:

Originally Posted by MV_Hirsch
I need some help.... I cant get output from all the printfs in my code...
Any and all help is appreciated!
Much Thankx~
Team 1458

When you say this do you mean you are getting some printfs and not all? If this is the case perhaps the printf are in a portion of the code that is not running.

Mike Betts 26-01-2005 05:33

Re: Printf and debuging fun....
 
Quote:

Originally Posted by MV_Hirsch
I need some help.... I cant get output from all the printfs in my code...
Any and all help is appreciated!
Much Thankx~
Team 1458

Please elaborate and maybe we can help you.

Are you dropping characters or having intermittent issues? If so, you may have too many printf statements and you are overrunning the USART buffers.

Mike Soukup 27-01-2005 09:36

Re: Printf and debuging fun....
 
Does the line
#include <stdio.h>
at the top of all the files in which you're using 'printf'? Early on I realized that if I omitted it I didn't get any output on the console.

logicalhippo 28-01-2005 22:46

Re: Printf and debuging fun....
 
are you using code built for the DDT (dynamic debugger)?
if so, printf's are transmitted through the TTL port (for documentation see the pdf in the "FRC DDT Code" zip at http://www.ifirobotics.com/rc.shtml#Programming)


All times are GMT -5. The time now is 18:05.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi