Compile NXC/NBC code as RTM/SYS

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
bungeshea
Posts: 207
Joined: 14 Aug 2011, 08:45
Location: Australia
Contact:

Compile NXC/NBC code as RTM/SYS

Post 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.
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: Compile NXC/NBC code as RTM/SYS

Post by muntoo »

I've always wondered - what does a NXT .sys file do? Does it interact with the FW?
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Compile NXC/NBC code as RTM/SYS

Post by timpattinson »

i think it is part of the FW
probably done with labview
I'll try to decompile it with bricx later
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
bungeshea
Posts: 207
Joined: 14 Aug 2011, 08:45
Location: Australia
Contact:

Re: Compile NXC/NBC code as RTM/SYS

Post 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
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Compile NXC/NBC code as RTM/SYS

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests