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 / 3496
3495  |  3497
Subject: 
Re: BrickOS motor port horrors
Newsgroups: 
lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc
Date: 
Mon, 27 Oct 2003 16:14:22 GMT
Viewed: 
6904 times
  
In lugnet.robotics.rcx.legos, Mark Riley wrote:
In lugnet.robotics.rcx.legos, Rob Stehlik wrote:

[snip]


As we discussed in email, it appears to be the firmware downloader causing
the problem.  I just tried downloading BrickOS 0.2.6.10 with both NQC 2.5 a1 and
BricxCC 3.3.6.2 and experienced growling motors.  I then downloaded BrickOS
using firmdl3 and had no problems.

This is the same issue that caused problems with other firmware downloads (such
as LDCC and LeJOS).  For an explanation as to what the problem is, see this
message:

http://news.lugnet.com/robotics/rcx/java/?n=260

For the morbidly curious, there is a two byte memory gap preceeding the motor
driver routine (which happens to be the last thing in the memory image), and
this gap causes the driver to load two bytes lower in memory.  Well, the first
instruction of the motor routine ends up being skipped.  This instruction
happens to zero a register (r6l) that gets written to the motor port, but since
the instruction isn't being executed, this register inherits whatever
semi-random value happens to be in r6l at the time.

Mark

Mark,
  Thanks for shooting this so quickly.
Kevin



Message has 1 Reply:
  Re: BrickOS motor port horrors
 
(...) [snippage] (...) I will be releasing a new version of BricxCC shortly (by the end of the week, with any luck) which will include a fix for this bug. It is already fixed but I'm trying to get a couple other items done before I publish a new (...) (21 years ago, 27-Oct-03, to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: BrickOS motor port horrors
 
(...) As we discussed in email, it appears to be the firmware downloader causing the problem. I just tried downloading BrickOS 0.2.6.10 with both NQC 2.5 a1 and BricxCC 3.3.6.2 and experienced growling motors. I then downloaded BrickOS using firmdl3 (...) (21 years ago, 27-Oct-03, to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)

8 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