Subject:
|
Re: Brickos c++ threads problem
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Mon, 13 Feb 2006 14:50:05 GMT
|
Viewed:
|
9984 times
|
| |
| |
In lugnet.robotics.rcx.legos, Daniele Benedettelli wrote:
> :Hi.
> I'm currently working on a thesis using Brickos 0.9.0.
>
> I succeeded in writing, compiling and uploading c
> code.
> When I tried to convert the SAME program in c++
> (changing extension from .c to .cpp) and eventually
> including a library such as <c++/MotorPair.H>, it
> compiles and uploads BUT RCX dies after an instant, no
> button works, no response to remote, no sound, and I
> had to remove batteries to reload ROM firmware!
Danny,
I've not used C++, but I have seen problems like this. For me, it happened when
the firmware in my brick didn't match the firmware I compiled the program to
use. However, it doesn't sound like that's the problem your having.
I'd suggest commenting out all the C++ code, and see if you still get the
problem.
Actually, my guess is that the c++ library has not been updated to work with the
latest version of BrickOS. I think a couple years ago the motor control stuff
was moved in memory, and I don't recall anyone saying anything about updating
the c++ code.
If you really want to use c++, you may need to look into the motor.h and
motorpair.h files, and figure out what's going on. However, give the lack of
reply to this post, you may have to figure it out yourself. :(
I hope you come up with something
Steve
|
|
Message has 1 Reply: | | Re: Brickos c++ threads problem
|
| (...) The h8300 gcc compiler is really buggy across different versions of gcc/binutils. Using the wrong version of binutils/gcc with each other always causes extremely strange problems on my RCX. Usually it will allow me to send the firmware, but (...) (19 years ago, 14-Feb-06, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Brickos c++ threads problem
|
| :Hi. I'm currently working on a thesis using Brickos 0.9.0. I succeeded in writing, compiling and uploading c code. When I tried to convert the SAME program in c++ (changing extension from .c to .cpp) and eventually including a library such as (...) (19 years ago, 9-Feb-06, to lugnet.robotics.rcx.legos)
|
3 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
|
|
|
|