|
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:
Message is in Reply To:
8 Messages in This Thread: ![BrickOS motor port horrors -Rob Stehlik (25-Oct-03 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/246.gif) ![Re: BrickOS motor port horrors -Timothy Schroeder (26-Oct-03 to lugnet.robotics.rcx.legos)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: BrickOS motor port horrors -Michael Obenland (26-Oct-03 to lugnet.robotics.rcx.legos)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: BrickOS motor port horrors -Kevin L. Clague (26-Oct-03 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: BrickOS motor port horrors -Michael Purvis (27-Oct-03 to lugnet.robotics.rcx.legos)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: BrickOS motor port horrors -Mark Riley (27-Oct-03 to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: BrickOS motor port horrors -John Hansen (27-Oct-03 to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)](/news/x.gif)
- 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
|
|
|
|