Go to Post Inaccurate data is not data. It's guessing. - George1902 [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 15-02-2006, 16:53
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,186
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
RC randomly resets or goes into program mode

As the topic says, our RC randomly resets or goes into program mode. I was able to isolate the problem to a group of printf()'s executing every program loop, but it seems to be happening again even with those gone.

We are running Timer 2 to run the ADC (only channel is a 50Hz sampling gyro), Timer 3 for an ultrasonic range finder, and 3 hardware interrupts (2 128ppr encoders and the range finder)

Any ideas? It may be our code is taking too long to execute, but I was under the impression the master processor would totally shut down the system if this happened. And even if that happened, what would cause program mode to trigger?

Last edited by Tom Bottiglieri : 15-02-2006 at 16:56.
  #2   Spotlight this post!  
Unread 15-02-2006, 17:08
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: RC randomly resets or goes into program mode

Quote:
Originally Posted by Tom Bottiglieri
As the topic says, our RC randomly resets or goes into program mode. I was able to isolate the problem to a group of printf()'s executing every program loop, but it seems to be happening again even with those gone.

We are running Timer 2 to run the ADC (only channel is a 50Hz sampling gyro), Timer 3 for an ultrasonic range finder, and 3 hardware interrupts (2 128ppr encoders and the range finder)

Any ideas? It may be our code is taking too long to execute, but I was under the impression the master processor would totally shut down the system if this happened. And even if that happened, what would cause program mode to trigger?
Check for dust particles near the RESET/PROG contacts.

Also, try reflashing the Master Code, something may have gotten corrupted. Were you operating in a very low power condition? Sometimes that can make memory in Atmel AVRs corrupt, PICs may have the same affliction. I'd say a Master Code redownload, followed by (not before!) a user code redownload will most likely fix your problem, but I'm not an IFI techy.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #3   Spotlight this post!  
Unread 15-02-2006, 17:22
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: RC randomly resets or goes into program mode

Is your code sitting and spinning on the done bit of the timers?

while (timer not done yet)
do (nothing)

or something like that?

that would crash your code if its waiting too long.
  #4   Spotlight this post!  
Unread 15-02-2006, 19:04
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: RC randomly resets or goes into program mode

We had this sort of trouble when our serial cable was too long. You might try using a shorter/better one.
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
  #5   Spotlight this post!  
Unread 15-02-2006, 23:32
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 747
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: RC randomly resets or goes into program mode

We just had this tonight....we didn't have the backup battery plugged in, and the main battery was low. When the motors turned on, it rebooted the CPU.

You don't have the same issues do you?


-
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
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
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
What type of autonomous mode program are you using? SilverStar Programming 1 21-01-2004 18:48
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Fried program slots? Jeff Waegelin Programming 18 19-03-2003 18:08


All times are GMT -5. The time now is 01:35.

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