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 / 1056
1055  |  1057
Subject: 
Very strange problems
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 21 May 2000 12:54:16 GMT
Viewed: 
1140 times
  
Hi!

I am experiencing some very strange problems when programming my RCX. Sometimes
(too often) the RCX just locks up when I run my program and I have to remove
the batteries and reload the firmware.

I have now found that very small changes in my program can make the difference
as to wether the RCX locks up or not. I have posted a program on
http://www.dd.chalmers.se/~f96tobe/AA/comm0.c

This program works. When I uncomment the lines last in the sub-routine
recieve_position, the program runs just fine. Right now the lines are:

//  if(flag==0)
//  {
      cputs("ptim");
      msleep(800);
//  }

I use cputs("...") to debug my code and can thus see that the program locks up
long before it should even reach these lines. Even if it did, I see no reason
that the program should hang just because of the lines above.

Either I am missing something fundamental here or legOS has some weird bugs.
Can anyone help me out?

Regards
Tobias



Message has 1 Reply:
  Re: Very strange problems
 
(...) As far as I can tell, legOS has some really strange bugs. I've learned to take it for granted that some programs (without warning) will just crash and lock up the machine. This is unfortunate, but I've never found a pattern to them so there is (...) (24 years ago, 21-May-00, to lugnet.robotics.rcx.legos)

20 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