To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 1970
1969  |  1971
Subject: 
Re: legOS - Does it work for you?
Newsgroups: 
lugnet.robotics
Date: 
Thu, 31 Dec 1998 11:37:41 GMT
Original-From: 
Ben Laurie <ben@STOPSPAMalgroup.co.uk>
Viewed: 
1346 times
  
Rick Kimball wrote:

I'm really excited about the legOS.  I got egcs that
came with RedHat 5.1 setup as a cross compiler. I
grabbed the source to legOS and started playing...
In fact, that is all I have done for the last couple
of days.

I've had good success running the demo programs.
That is, as long as I don't toggle the run button
more than 5 or 6 times.  After that the RCX would
just flake out.  I spent some time debugging it and
it looks to me like the task management stuff
is corrupting memory.  I added my own mm_grim_reaper
routine to the main loop that basically does an
mm_init.

Hmmm ... not so sure if the task manager is responsible - I have a
related (I think) problem if I use static variables - programs that work
fine with global variables just lock solid when they are static. Since
making them static merely moves them around the memory map (and, because
of alignment, in the particular case moves everything else up by errr 8
bytes?) I strongly suspect memory corruption. But this happens first
run, so my finger is pointing at memory management, not task management.

It might be worth picking up the standard malloc/free and seeing if they
work any better.

Cheers,

Ben.

--
Ben Laurie            |Phone: +44 (181) 735 0686| Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org/
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author     http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache/
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message has 2 Replies:
  Re: legOS - Does it work for you?
 
(...) I tried that with the same results. At that point, I added some debug messages to the malloc and free routines. Using the demo light-sensor program I wrote down the addresses returned by malloc. There are only two calls per execi, the (...) (26 years ago, 31-Dec-98, to lugnet.robotics)
  Re: legOS - Does it work for you?
 
(...) Ben you were right! I replace the malloc/free routines with a very simple array based allocation scheme and everything works great. I guess the other malloc I grabbed off the net wasn't any good either. Thanks! (26 years ago, 31-Dec-98, to lugnet.robotics)

Message is in Reply To:
  legOS - Does it work for you?
 
I'm really excited about the legOS. I got egcs that came with RedHat 5.1 setup as a cross compiler. I grabbed the source to legOS and started playing... In fact, that is all I have done for the last couple of days. I've had good success running the (...) (26 years ago, 30-Dec-98, to lugnet.robotics)

12 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
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
3 hours ago
Custom Search

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