View Single Post
  #2   Spotlight this post!  
Unread 09-02-2008, 08:05
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Printf prints only the first character

Quote:
Originally Posted by wireties View Post
Try things one at a time. You can't easily deduce which line is causing the problem. The output is buffered so sometimes its a bit difficult to correlate the cause of the problem with what actually makes it out the serial port.
I've been doing things slowly, one at a time, but I haven't documented every step because I've been kinda busy...

[QUOTE}Are you sure you are not reading from places in memory that are not in the EPROM? Try printing out the parameters to the EEPROM_Read2ByteSigned function.[/quote]
Aah...good point. I'll check that exhaustively today. They appear to read/write and retain their value fine, though, suggesting that they are indeed EEPROM.

Quote:
Maybe the serial buffers are overflowing, are you checking the return values of printf?
I didn't even know printf returned anything...
What is the expected return value? I would assume 0, and nonzero is failure...but I never thought about it at all.

Thanks so much for continuing to check this thread. I've had another printf bug thread die quickly with not many replies...

JBot
__________________
Aren't signatures a bit outdated?