Log in

View Full Version : Printf and debuging fun....


MV_Hirsch
25-01-2005, 22:21
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
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
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
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
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
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)