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 / 2431
2430  |  2432
Subject: 
Re: The PRGM key
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 7 Apr 2002 16:23:28 GMT
Viewed: 
1790 times
  
I had similar problems when using legOS with CONF_TM defined in
boot/config.h   What I found was that the lnp handler was not getting enough
processing time and was missing some data at times.

Try the following fix and let me know if it helps.  If so, it will likely be
in the next release.

In kernel/program.c, look for the following two lines (search for execi)

  execi(&packet_consumer,0,0,PRIO_HIGHEST,DEFAULT_STACK_SIZE);
  execi(&key_handler,0,0,PRIO_HIGHEST,DEFAULT_STACK_SIZE);

Change the first one to:

  execi(&packet_consumer,0,0,  (PRIO_HIGHEST+1)  ,DEFAULT_STACK_SIZE);

Then look for:

      case KEY_ONOFF:
        killall(PRIO_HIGHEST);

Change the second line to:

        killall(  PRIO_HIGHEST+1  );

Then make, (reload the kernel with firmdl3) and test 8-)

NOTE: This is just a hack to fix the problem temporarily.  A more complete
solution will be implemented in a future release (0.2.6 maybe?)

Joe Woolley

"Ralph Clark" <clarkrjk@yahoo.com> wrote in message
news:Gu6xnt.M91@lugnet.com...
<snip>
I'm doing this but once I've downloaded the several programs to the RCX
(adding on the appropriate -p0, -p1 etc suffixes), pressing the PRGM • button
does nothing! Surely the "0" on the right hand side of the display
should change to a 1,2 or 3 etc!?! It stays as "0". Please help.

Could it be something to do with the fact that half the time it says
"sending keepalive..." 5 times followed by "error deleting program" Also
sometimes it says nothing in Cygwin and the program appears correctly,
albeit only as p0 with the previous program non existent.
And, sometimes it results in a "-" appearing in the right hand side of the
display with no programs in the RCX.


Thanks,
Ralph Clark


P.S.
----
How about having a compiler error if too many characters are attempted to • be
output to the screen at once (>5 characters)?
e.g.  cputs("123456");



Message has 2 Replies:
  Re: The PRGM key
 
I just tried this and it has no effect. By the way, I'm using Cygwin B20 under Windows 98 with a com port IR thing, and LegOS 0.2.5. The same thing happened using WinLegOS and 0.2.3. Pressing the PRGM key has no effect in any situation - I assume it (...) (23 years ago, 7-Apr-02, to lugnet.robotics.rcx.legos)
  Re: The PRGM key
 
(...) When you use firmdl3, changing anything inside the lnp handler won't do anything useful! The code resposible for fast downloading is the small assembly code transfered before the legOS download starts. (...) Don't do that! legOS 0.2.5 ran on (...) (23 years ago, 8-Apr-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  The PRGM key
 
I quote from the original readme: "Type "dll demo/helloworld.lx". If all is well, it should be automatically relocated and transmitted to program slot 0. Press the RUN key to run. The program stops automatically. Type "dll demo/rover.c -p1" to (...) (23 years ago, 7-Apr-02, to lugnet.robotics.rcx.legos)

13 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