To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxt.nxthackingOpen lugnet.robotics.nxt.nxthacking in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / NXT Firmware Hacking / 53
52  |  54
Subject: 
Re: NXT Programming with C Question
Newsgroups: 
lugnet.robotics.nxt.nxthacking
Date: 
Sat, 19 May 2007 14:45:33 GMT
Viewed: 
15980 times
  
In lugnet.robotics.nxt.nxthacking, Brian Davis wrote:
In lugnet.robotics.nxt.nxthacking, Alexis Morris wrote:

does anyone know why plain C code can't just
compile and run on the NXT...

I suspect it could, but I'm not sure that's an approach you want to take. For
one thing, there's the question of how to address and handle all the special HW
that is attached to the ARM inside the NXT... and furthermore communicate with
the two other processors on-board, one that handles BT communication and another
that deals with the motor drivers. And then there's the LCD screen to address,
the buttons to decode, both analog and digital (I2C) sensors to handle, etc.
You'd have to have significant libraries carefully defined to handle all this,
and some of it (the aux processors, for instance) you're pretty much stuck with
what's on there.

In short, most of us are far too lazy and uneducated to make the NXT work at a
bare-metal level without the help of others smarter and more driven than
ourselves (thank you Dick, Ralph, John, Brian, and others for all these
wonderful 3rd party offerings!).

Additionally, the C-ish NXT programming options are
using the VM approach...

Another reason that a VM approach might be handy is it makes it very hard for
the end user to "brick" the NXT, locking it up into some inaccessible mode or
loop. With end users like me, VM approaches are very user-friendly.

Hi there,

Thanks for venturing those reasons. I had been thinking that with the release of
the NXT firmware that there may be options to compile code that worked directly
with the firmware.

Cheers



Message has 1 Reply:
  RE: NXT Programming with C Question
 
(...) Ralph and Brian have provided good input that parallels my experience. Here's a little more information. If you have access to the IAR tools you can compile the NXT firmware available in the NXT SDK from LEGO "out of the box". I believe there (...) (17 years ago, 20-May-07, to lugnet.robotics.nxt.nxthacking)

Message is in Reply To:
  Re: NXT Programming with C Question
 
(...) I suspect it could, but I'm not sure that's an approach you want to take. For one thing, there's the question of how to address and handle all the special HW that is attached to the ARM inside the NXT... and furthermore communicate with the (...) (17 years ago, 19-May-07, to lugnet.robotics.nxt.nxthacking)

6 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR