| | Re: Install problems on Linux RedHat 9
|
|
(...) ... (...) ... Yes, no one has ported the C++ bits of brickOS to work with gcc3. Use gcc2, or restrict yourself to plain C. (...) ... (...) Yes, gcc3.3 removed support for multi-line string literals. The brickOS committers all seem to be rather (...) (21 years ago, 18-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Install problems on Linux RedHat 9
|
|
Hi, I tried to install brickos-0.2.6.10 and have been unsuccessful. I started by going to rpmfind.net to get the h8300 binutils and gcc. The versions were: h8300-hms-binutils-2.11.2-1 h8300-hms-gcc-3.0.1-2 The brickos make failed with the following: (...) (21 years ago, 18-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | USB/Serial Converter
|
|
Hi, folks. I've tried to connect to my RCX 1.0 (firmware 0328) from my laptop. Since I have only a serial IR tower, it works fine on my desktop PC, but communications won't work when I use a USB/serial converter to connect it to my laptop (there (...) (21 years ago, 18-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Programming in Assembly
|
|
(...) (how the manual says to do data)? That's because I don't like to type more than is necessary! :-) Take this line for example: mov.b #0x02:8,r0h This line is doubly redundant. The destination operand is an 8-bit register so the other qualifiers (...) (21 years ago, 18-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Programming in Assembly
|
|
Ok, the motor stuff makes sense, I got a little confused with the shift thing. I looked at the proggamming manual some more and it explaned the @ (Register inderect) but I don't see why it is needed, also in you example you specify the data as (...) (21 years ago, 18-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Programming in Assembly
|
|
A direct link to the page with the documents is (URL) Jürgen Stuber <stuber@loria.fr> (URL) rot 13 "fr" "se" (21 years ago, 17-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Programming in Assembly
|
|
(...) You should look at Kekoa Proudfoots documentation of RCX internals ((URL) and his librcx library to understand the calling convention for the ROM. Then get yourself the H8300 tools (gcc et al) somewhere, this includes assembler and (...) (21 years ago, 16-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Programming in Assembly
|
|
(...) mentioned previously) that describes the on chip I/O features of the H8 if you plan on doing any work with the sensors. (...) to (...) that (...) To turn on motor C forward you would do this: mov #0x02,r0h mov r0h,@0x80:8 The second (...) (21 years ago, 17-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Programming in Assembly
|
|
Cool, thanks I was able to find the doc here: (URL) post about the motor seems helpful, so if I understand right the way to run motor A forward would be "mov 0x030003,r0h mov 0x80,r0h" and for the motor C the same except 0x06? How does the (...) (21 years ago, 17-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Programming in Assembly
|
|
Here's a more direct link for the H8 docs: (URL) down to the literature section and download the two PDFs. For assembly, I would recommend starting off with an installation of BrickOS and perusing the various source code files for the kernel. You'll (...) (21 years ago, 16-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Programming in Assembly
|
|
(...) find the old documentation files is a bit tricky, it took me some time to figure them out. Anyway, take a look at: (URL) look at the product list. Regards, Michael (21 years ago, 16-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Programming in Assembly
|
|
I was interested in writing some assembly code for the lego mindstorm, I don't plan on writing an incredibly complex program though. I am learning asm for the z80 chip so I have a little experience. I only want a single threaded application with one (...) (21 years ago, 16-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Modifying the BrickOS source code
|
|
Thanks Joe, it makes sense now and I understand it is something that is difficutl to explain esp, through a message board. Thanks for helping me out... Mike (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Modifying the BrickOS source code
|
|
Here is a visual representation: [ KERNEL ]mm_start[ HEAP ] The heap will contain ALL of the following: User Programs, User Allocated memory, Kernel allocated memory (not including static/global variables and constants). The only thing that is prior (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Modifying the BrickOS source code
|
|
(...) Thanks for the description Joe, but in the above paragraph you seem to contradict yourself, you say that mm_start is the end of kernel mode, but alos that user programs are located above mm_start I do not understand that part, did you mean (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Modifying the BrickOS source code
|
|
Mike, IIRC, mm_start is the beginning of the heap. When the system or a user program requests memory (new in C++ or malloc/calloc in C) the memory is taken from this block (from mm_start to the end of memory) What might be confusing is how the (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Modifying the BrickOS source code
|
|
Thanks to all with the help, I finally got my new News setup info (my original login wasnt working so I had to re-sign up but it took about 2 weeks to hear from lugnet, so Charlie posted some stuff for me). I am looking at mm.c for my project and I (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: BrickOS motor-output: Subject to change?
|
|
Do you use another firmware downloader besides firmdl3? Recent changes to BrickOS changed the memory layout a bit and this could be an issue. For example, I just discovered that the nqc firmware downloader doesn't like firmware files with (...) (21 years ago, 15-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: BrickOS motor-output: Subject to change?
|
|
Hi, I remember. I have tried brickOS 0.2.6.10 but I had problems with downloading the firmware. I was unable to get the new kernel into the RCX. I do not have this problem with 0.2.6.9. Thanks, Dietmar (...) [...] (...) [...] (21 years ago, 14-Jul-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Help with lnp
|
|
(...) (URL) the latest 0.2.6.10 version. Regards, Michael (21 years ago, 9-Jul-03, to lugnet.robotics.rcx.legos)
|