Page 1 of 1

Compile NXC/NBC code as RTM/SYS

Posted: 04 Jun 2011, 03:24
by bungeshea
Hello
I was wondering if you could compile NXC/NBC code as a RTM (Try-Me) file or SYS (System File). In the "LEGO MINDSTORMS Power Programming" book it said that you could but I don't think it said how.

Re: Compile NXC/NBC code as RTM/SYS

Posted: 04 Jun 2011, 04:49
by muntoo
I've always wondered - what does a NXT .sys file do? Does it interact with the FW?

Re: Compile NXC/NBC code as RTM/SYS

Posted: 04 Jun 2011, 04:54
by timpattinson
i think it is part of the FW
probably done with labview
I'll try to decompile it with bricx later

Re: Compile NXC/NBC code as RTM/SYS

Posted: 04 Jun 2011, 07:57
by bungeshea
muntoo wrote:I've always wondered - what does a NXT .sys file do? Does it interact with the FW?
Yes. The 'On Brick NXT Program' uses a file called 'RPGReader.sys'. You can download a open source version from here: http://bricxcc.sourceforge.net/nbc/samples

Re: Compile NXC/NBC code as RTM/SYS

Posted: 04 Jun 2011, 17:35
by afanofosc
The NXT firmware doesn't do anything with .sys files other than RPGReader.sys. It is just a renamed .rxe executable.

You can turn on the "save compiler output" option in Preferences and manually rename the resulting .rxe file as .rtm to turn it into a Try Me program. The only change is where it shows up in the NXT menu system. I don't know why anyone would care whether their program showed up as a regular program or a try me program on the NXT.

John Hansen