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 / 25901
25900  |  25902
Subject: 
Re: NXT interface
Newsgroups: 
lugnet.robotics
Date: 
Sat, 6 May 2006 04:03:59 GMT
Viewed: 
2678 times
  
In lugnet.robotics, Ross Crawford wrote:
Sounds great! Are you able to determine how much memory a program takes up while
it's running? And how much memory is free?

The memory used by a program while it is running is not the same memory used for
storing the program (flash).  There isn't any way that I know of at this point
to find out how much memory a program uses while it is running or how much of
executable memory is available for allocation by the program.  It is possible
from NBC to determine how much flash memory is free but that capability is not
available in programs written using the LEGO Mindstorms NXT software.


Hmmm the purpose of these slots are one thing thats not immediately obvious (to
my old brain anyway), can you explain more about what they are and how they are
used?

As has been mentioned, the NXT provides a simple way of writing 5 step programs
via its menu system.  The facility is found under the NXT Program icon on the
root menu.  Programs written on the brick with this feature are stored as files
in flash memory with a .rpg file extension.  In order to run these programs you
have to have the RPGReader.sys program resident on the NXT.  This program is
part of the standard firmware and doesn't show on under the My Files list of
programs because it has a .sys extension.  It is, however, a standard .rxe
executable file and it can be decompiled and examined using BricxCC and NBC.  If
you delete RPGReader.sys the ability to execute .rpg files will be disabled but
you'll have ~14k more space in flash memory for your own programs.  All the
files installed by the firmware can safely be deleted to free up flash memory.

Hope this helps,

John Hansen



Message is in Reply To:
  Re: NXT interface
 
(...) Sounds great! Are you able to determine how much memory a program takes up while it's running? And how much memory is free? (...) Hmmm the purpose of these slots are one thing thats not immediately obvious (to my old brain anyway), can you (...) (18 years ago, 5-May-06, to lugnet.robotics)

6 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