Subject:
|
Re: Memory, Motors and Odd Things
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 11 Dec 2003 04:23:32 GMT
|
Viewed:
|
4256 times
|
| |
| |
In lugnet.robotics.rcx.legos, Mark Riley wrote:
|
In lugnet.robotics.rcx.legos, Steve Hassenplug wrote:
|
Ive noticed when the program is running, its not doing anything with the
motors, but they seem to buzz.
I assume my variables are writing into the motor control area of BrickOS.
Is that possible?
|
Are you using BrickOS 0.2.6.10?
|
no. Ok, thats my first problem.
|
In earlier versions, it was possible for malloc() to return pointers to RAM
in the range [F010,FB7F], which was shared with the motor port controller.
|
hmm. yep. malloc()...
|
What firmware downloader did you use to download BrickOS (i.e. the
brickOS.srec file, not the .lx file)?
|
no, using the firmdl3.
|
If you have recursive code, your program could be overflowing your stack
memory and corrupting memory (unlikely, but I thought Id mention it since I
have a hunch what your program is for... :-).
|
Yes, its recursive. And, Im sure your hunch is right.
|
Or, there could be Yet Another BrickOS Motor Port Bug in the offing... ;-/
|
It sounds like its the malloc() bug. Im using 0.2.6.09 (?) Im not going to
switch to xx.10 just yet, because of my liberal use of systime, instead of
getsystime (or whatever I SHOULD be using) :)
Im going to give the software (and hardware its installed in) a big test this
weekend, so I dont want to make that change right now, because, with the
exception of the noise from the motor port, its working fine.
Thanks
Steve
|
|
Message is in Reply To:
| | Re: Memory, Motors and Odd Things
|
| (...) Hi Steve, Are you using BrickOS 0.2.6.10? In earlier versions, it was possible for malloc() to return pointers to RAM in the range [F010,FB7F], which was shared with the motor port controller. Writing to this memory adversely affected the (...) (21 years ago, 11-Dec-03, to lugnet.robotics.rcx.legos, FTX)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|