Subject:
|
Re: malloc() bug found -- BAD MEMORY REGION :-(
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 2 Mar 2000 01:25:17 GMT
|
Viewed:
|
1335 times
|
| |
| |
Martin Cornelius wrote:
> i'll go ahead now and check if this fixes my mysterious hangups.
made some tests, and - Yep, it works ! I'd strongly encourage everybody
experiencing strange hangups to apply the little fix to mm_init() i
suggested. For me, it makes malloc() and dll work perfectly.
BTW, there are some minor flaws in dll[x], that might confuse one
(especially in FAST mode):
- if the ACK for the very last data packet sent to the RCX gets lost,
the PC will report failure although the upload was successfull.
- if upload fails because RCX memory is exhausted, the PC will not
report this, it will just time out and report failure.
|
|
Message has 4 Replies:
Message is in Reply To:
| | malloc() bug found -- BAD MEMORY REGION :-(
|
| It looks like it's not a bug in legOS, but in the RCX hardware: Memory from 0xfb80 to 0xfd7f is simply NOT WRITEABLE, or more exactly, always read as 0xff, at least on my RCX ! Try the following little test: // // memory test // #include <conio.h> (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.legos)
|
10 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
|
|
|
|