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 / 3997
3996  |  3998
Subject: 
Re: Shutdown/Off while program running crashes BrickOS
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 17 Jun 2007 03:08:06 GMT
Viewed: 
15178 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?

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 look at it, if you want.

Steve



Message has 1 Reply:
  Re: Shutdown/Off while program running crashes BrickOS
 
(...) I'm using what appears to be called BrickOS 0.9.0. It was installed using John Hansen's simplified installation from his BricxCC sourceforge site. I was under the impression that on later versions of BrickOS, like what I am using, the firmware (...) (17 years ago, 17-Jun-07, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Shutdown/Off while program running crashes BrickOS
 
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 (...) (17 years ago, 16-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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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