Go to Post Like many researchers before me, I look and read about what my peers are doing and developing, and then incorperate the best of them into my ideas or change my focus because of them. - Wetzel [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 18-02-2008, 16:04
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
Power Up Code Error / System Crash

Hi all,

I'm seeing some weird behavior out of the RC, and was wondering if anyone has seen similar.

We are using Kevin Watson's ifi_sensor workspace as a baseline, and have multiple modules plugged in on top of it, tied together in various ways. Pretty standard stuff.

When the robot is first turned on, there is a code error, and the red light blinks. Upon a reset, the code runs smoothly as expected; resetting the RC after initial boot does not cause this problem. The bug seems to be limited to full power cycles only.

Is there any extra initialization on a cold boot? I believe I may be tripping the watch dog, but can't be entirely sure.

Thanks!

Last edited by Tom Bottiglieri : 18-02-2008 at 16:08.
  #2   Spotlight this post!  
Unread 18-02-2008, 16:16
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,673
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Power Up Code Error / System Crash

There's a ton of extra initialization on a cold boot. At the very least, all the inline initialized variables are re-initialized during a cold boot, thus why people often have failed autonomous modes after a field error. There's a fair bit of processor memory clearing and such like as well. If you've fiddled with that code then that might do it.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #3   Spotlight this post!  
Unread 20-02-2008, 15:52
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: Power Up Code Error / System Crash

Quote:
There's a ton of extra initialization on a cold boot.
Could you be more specific? On a cold reboot (power up) and upon a reset, the processor vectors through 0x0000 - the reset vector - and then does:

Code:
_entry    -> jumps to  _startup
_startup -> sets up stack/frame pointers
                 calls clear ram memory routine to zero in all ram banks (except for F00-F5F)
                 calls _do_cinit which initalizes all ram locations to user declared defaults
                 calls main
main
:
.

}
It should be the same for a cold boot vs reset as it executes the same code?

Last edited by dcbrown : 20-02-2008 at 15:54.
  #4   Spotlight this post!  
Unread 21-02-2008, 02:55
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Power Up Code Error / System Crash

Quote:
Originally Posted by Tom Bottiglieri View Post
Is there any extra initialization on a cold boot? I believe I may be tripping the watch dog, but can't be entirely sure.
If you zip up your code and e-mail it to me I'll have a look. If I remember correctly, I disabled the watch-dog timer in the library code so this shouldn't be a problem. I haven't reverse engineered the master processor code (yet <grin>), so I don't know if it's enforcing some kind of initialization time limit. For grins you could try commenting out the memory clearing code in _startup and see if that makes a difference.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 21-02-2008, 09:57
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
Re: Power Up Code Error / System Crash

Quote:
Originally Posted by Kevin Watson View Post
For grins you could try commenting out the memory clearing code in _startup and see if that makes a difference.
I'll try that first, and if the results aren't what I expect, send you a copy. Thanks for all the help.
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
Error in code light on, trouble finding error Bryan Herbst Programming 16 12-10-2007 21:59
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
4 pin EDU PWM out power, red pin2 V in error Dale(294engr] Electrical 4 13-02-2004 03:03
power supply of control system archiver 2000 5 24-06-2002 00:14
Control System Power Al Skierkiewicz Technical Discussion 0 25-03-2002 09:04


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

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