Go to Post I know my grandmother would call me a bully for that. And she didn't raise a bully. - Libby K [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2005, 22:21
MV_Hirsch MV_Hirsch is offline
Registered User
#1458
 
Join Date: Jan 2004
Location: Danville, ca
Posts: 5
MV_Hirsch is an unknown quantity at this point
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
  #2   Spotlight this post!  
Unread 25-01-2005, 22:43
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
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?
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
  #3   Spotlight this post!  
Unread 25-01-2005, 22:55
Chris Bright's Avatar
Chris Bright Chris Bright is offline
Registered User
#1023 (Bedford Express)
Team Role: Webmaster
 
Join Date: Feb 2003
Rookie Year: 2003
Location: Temperance, MI
Posts: 54
Chris Bright will become famous soon enough
Send a message via AIM to Chris Bright
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.
__________________
2003 - National Rookie All-stars
2003 - Great Lake Rookie All -stars
  #4   Spotlight this post!  
Unread 26-01-2005, 05:33
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
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 Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #5   Spotlight this post!  
Unread 27-01-2005, 09:36
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
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.
  #6   Spotlight this post!  
Unread 28-01-2005, 22:46
logicalhippo logicalhippo is offline
Registered User
AKA: Russell McClellan
#0213 (Dirty Birds)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Keene, NH
Posts: 11
logicalhippo is an unknown quantity at this point
Send a message via AIM to logicalhippo
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)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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