|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||||
|
|||||
|
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.
|
|
#3
|
|||
|
|||
|
Re: Power Up Code Error / System Crash
Quote:
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
:
.
}
Last edited by dcbrown : 20-02-2008 at 15:54. |
|
#4
|
||||
|
||||
|
Re: Power Up Code Error / System Crash
Quote:
-Kevin |
|
#5
|
|||
|
|||
|
Re: Power Up Code Error / System Crash
I'll try that first, and if the results aren't what I expect, send you a copy. Thanks for all the help.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |