Go to Post When you tell any of your kids that winning isn't important, or isn't [I]that[/I] important, the flapping sound you hear is your credibility flying away. - jlindquist74 [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 16-11-2006, 16:31
yogibear yogibear is offline
Registered User
no team
 
Join Date: Nov 2006
Location: Boulder, CO
Posts: 3
yogibear is an unknown quantity at this point
printf/debugging

I am currently using a Vex robotics system with EasyC and will be transferring over to MPlabs soon. In either case, I am aware of the PrintToScreen routine that is provided with EasyC that will display output to the IFI Terminal window. However, I have been told that the routine takes up to 20msec to execute which significantly impacts its ability as a debugging tool for timing issues (Heizenberg's Uncertainty Principle).

Are there any other more direct forms of printf that can be used, perhaps with a terminal window other than the IFI terminal window?

As my team moves forward with more complex programming challenges, the ability to effectively debug the system will hinge on having a reliable, well understood approach.

Thanks!
Pat
  #2   Spotlight this post!  
Unread 16-11-2006, 20:08
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: printf/debugging

If you are debugging something critical to timing, I recommend an alternative method. The last 4 PWMs in CCM mode and digital outputs come to mind.

I can vouch for the PWM method. I used them to test interrupts attached to wheel encoders. Toggle them on interrupt handling. We hooked an oscilloscope up to the PWM pin and the encoder, and the wave forms synced up nicely.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making Debugging Easier dm0ney Programming 18 10-04-2005 23:32
Dynamic Debugging Tool MarkVH Programming 5 04-02-2005 18:09
printf isn't printf-ing. Help! Meandmyself Programming 14 15-02-2004 16:27
openFIRST switches debugging system to Bugzilla Timothy D. Ginn FIRST-related Organizations 0 28-12-2003 00:32


All times are GMT -5. The time now is 03:10.

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