To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3996
3995  |  3997
Subject: 
Shutdown/Off while program running crashes BrickOS
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sat, 16 Jun 2007 22:49:45 GMT
Viewed: 
15157 times
  
I have a big and somewhat complicated BrickOS program that I believe is
reasonably well behaved.  All my loops monitor shutdown_requested and I have
tested stopping the program with the Run button while the program is in various
states and it always seems to shutdown perfectly.  My problem is if I shutdown
with the Off button.  In that case the firmware crashes and I have to pull the
battery out to reset the RCX and then re-download the firmware.

I believe the same thing happens if I leave the program running and the RCX does
an auto-shutoff though I don't have recent experience with this.  How do you set
the auto-shutoff to either a very long time or disable it completely?

Any insight on this would be much appreciated.

Thank you.

Gus



Message has 1 Reply:
  Re: Shutdown/Off while program running crashes BrickOS
 
(...) Gus, It sounds like the code is testing for pressing the run button, but not pressing the power button. I would think testing for shutdown would be good enough, but who knows... :) What version of BrickOS are you using? I'd be glad to take a (...) (17 years ago, 17-Jun-07, to lugnet.robotics.rcx.legos)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR