Page 1 of 1

Help! RCX 2.0 / BricXCC don't communicate...

Posted: 25 Apr 2011, 22:23
by papahotel
Hello everybody,

I need some help. I recently found my RCX 2.0 in the basement and tried reinstalling everything on my laptop which runs on XP SP2. All seems well, using the Lego sotfware everything works fine. If I try using BricxCC however, I am having trouble communicating with the RCX. I can acces it directly, with the Brick Piano for instance - that works fine. But if I try to download a new programm, the BricxCC freezes for about half a minute and then tells me that the download failed.
Like I said, downloading a program using Lego's graphic interface works just fine. What am I missing here?

Another question: I found out the hard way that NQC changed? My tutorials show me On(OUT_A);, for instance, but BricxCC wants me to write OnFwd(OUT_A, 4);
Any words on this?

Thanks for all your ideas.

Re: Help! RCX 2.0 / BricXCC don't communicate...

Posted: 26 Apr 2011, 02:30
by afanofosc
It sounds like you are not using the proper file extensions for your NQC programs. Are you definitely using .nqc? The file extension is how BricxCC determines which compiler to launch. If there is no file extension then BricxCC picks the compiler based on the settings on the Compiler tab in the Preferences dialog. For the RCX 2.0 with the standard firmware you could be trying to compile LASM, MindScript, or NQC code. That's why the file extension is so important.

The OnFwd command takes a power level parameter for both NBC and NXC but not NQC. So it sounds like BricxCC thinks your source code is either NBC or NXC code. If it has a .nqc file extension then BricxCC should always try to use the NQC command line compiler to compile your code.

John Hansen

Re: Help! RCX 2.0 / BricXCC don't communicate...

Posted: 26 Apr 2011, 16:53
by papahotel
afanofosc wrote: If there is no file extension then BricxCC picks the compiler based on the settings on the Compiler tab in the Preferences dialog. For the RCX 2.0 with the standard firmware you could be trying to compile LASM, MindScript, or NQC code. That's why the file extension is so important.


John Hansen
Thank you very much. You were right, I was able to fix it in exact this manner.

Bye,
Papahotel.