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 / 2166
2165  |  2167
Subject: 
Re: legOS ... really a stack question
Newsgroups: 
lugnet.robotics
Date: 
Sat, 2 Jan 1999 23:01:39 GMT
Viewed: 
1333 times
  
Ben Laurie <lego-robotics@crynwr.com> wrote:
Hmmm ... good point. 0xf000 is memory mapped I/O for the motors, IIRC.
Not sure whats above there, but I wouldn't be surprised to hear it isn't
a good place to store things. I'd guess that setting the stack to 0xeffe
should be equally good.

All off-chip accesses to f000 or higher are memory mapped to the motors.
Because accesses to addresses above fb7f are all on-chip or invalid, the
motors are effectively memory mapped to f000-fb7f.

I'll have to see if that also cures my mysterious problems...

What are your symptoms again?

One problem I noticed with LegOS is that it does not zero the .bss
section, which I believe contains uninitialized global data.

-Kekoa



Message has 2 Replies:
  RE: legOS ... really a stack question
 
(...) .bss also contains global data initialized to 0, which is even worse if it's not cleared. -Allen -- Did you check the web site first?: (URL) (25 years ago, 2-Jan-99, to lugnet.robotics)
  Re: legOS ... really a stack question
 
(...) Changing globals to statics causes crashes. Cheers, Ben. -- "My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition (...) (25 years ago, 3-Jan-99, to lugnet.robotics)

Message is in Reply To:
  Re: legOS ... really a stack question
 
(...) Hmmm ... good point. 0xf000 is memory mapped I/O for the motors, IIRC. Not sure whats above there, but I wouldn't be surprised to hear it isn't a good place to store things. I'd guess that setting the stack to 0xeffe should be equally good. (...) (25 years ago, 2-Jan-99, to lugnet.robotics)

10 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