Go to Post ...as one of my favorite students (they are all my favorites)... - JaneYoung [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 09-02-2005, 21:50
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
Exclamation Warning: Microchip's printf() Picky

I found tonight that when using Microchip's printf(), and the format string does not end in "\r", then it may cause the green-orange blinking on the program LED on the controller.

Make sure all your calls end their lines correctly.
  #2   Spotlight this post!  
Unread 09-02-2005, 21:54
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Warning: Microchip's printf() Picky

Quote:
Originally Posted by Astronouth7303
I found tonight that when using Microchip's printf(), and the format string does not end in "\r", then it may cause the green-orange blinking on the program LED on the controller.

Make sure all your calls end their lines correctly.
If this is true.. I think you saved me hours of frustration.

I was getting a blinky blinky code state light, and I think its because i had /n instead of /r .

Did you run into this problem or something similar?
  #3   Spotlight this post!  
Unread 09-02-2005, 22:11
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: Warning: Microchip's printf() Picky

Quote:
Originally Posted by Astronouth7303
I found tonight that when using Microchip's printf(), and the format string does not end in "\r", then it may cause the green-orange blinking on the program LED on the controller.

Make sure all your calls end their lines correctly.
I found that out when I re-used some code from last year.. Does anyone know why they changed it?
__________________
Suddenly being rejected from college feels right during the build season. Now I am a mentor.
  #4   Spotlight this post!  
Unread 10-02-2005, 15:21
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Warning: Microchip's printf() Picky

Quote:
Originally Posted by Ryan Cumings
I found that out when I re-used some code from last year.. Does anyone know why they changed it?
You can use IFI's printf if you like. It's still included with both versions of the default code. The difference now is that you can choose to use IFI's or Microchip's.
  #5   Spotlight this post!  
Unread 13-02-2005, 19:26
probizzle's Avatar
probizzle probizzle is offline
Registered User
AKA: Prabhas Pokharel
#0639 (Code Red)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Ithaca
Posts: 78
probizzle will become famous soon enoughprobizzle will become famous soon enough
Send a message via AIM to probizzle
Re: Warning: Microchip's printf() Picky

Also,

make SURE no stray printfs are being calling before Initialize_Serial_Comms() is called.

If you do this, your rc will go into red-green led mode every time you reset it. So you'll have to end up downloading your code ALL the time.
(I'm assuming ifi-loader will do these initializations for you the time you are downloading code, and as this won't happen later, you get the crash. dunno though.)
__________________
Code Red Team 639 Winners of the 2005 FingerLakes Regional with 191 and 494.
--
http://pset.deu83.com << my baby
http://www.setgame.com/set/ << it's mother
  #6   Spotlight this post!  
Unread 13-02-2005, 19:27
probizzle's Avatar
probizzle probizzle is offline
Registered User
AKA: Prabhas Pokharel
#0639 (Code Red)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Ithaca
Posts: 78
probizzle will become famous soon enoughprobizzle will become famous soon enough
Send a message via AIM to probizzle
Re: Warning: Microchip's printf() Picky

Also,

make SURE no stray printfs are being called before Initialize_Serial_Comms() is called.

If you do this, your rc will go into red-green led mode every time you reset it. So you'll have to end up downloading your code ALL the time.
(I'm assuming ifi-loader will do these initializations for you the time you are downloading code, and as this won't happen later, you get the crash. dunno though, someone wanna check?)
__________________
Code Red Team 639 Winners of the 2005 FingerLakes Regional with 191 and 494.
--
http://pset.deu83.com << my baby
http://www.setgame.com/set/ << it's mother
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
Printf symbol undefined? Help schenkin Programming 3 08-02-2005 16:14
printf problem miketwalker Programming 7 31-01-2005 13:19
Default Code and printf WilsonDJ00 Programming 2 22-01-2005 16:39
Anyone with a replacement Printf? Larry Barello Programming 5 19-03-2004 02:20
Printf warning during compile? actorindp Programming 4 20-02-2004 17:02


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

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