Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GNAT GPL for LEGO MINDSTORMS NXT

22 views
Skip to first unread message

Piotr

unread,
Jun 18, 2009, 3:51:50 AM6/18/09
to
GNAT GPL for LEGO MINDSTORMS NXT

http://libre.adacore.com/libre/tools/mindstorms/

I'm really pleased to see that the work I undertook at AdaCore as intern has
now been made available for everyone! During 4 months in 2008 I worked
porting the GNAT toolchain to the NXT platform thus making Ada available for
the LEGO MINDSTORMS NXT robots :)

I hope you have fun playing with it!

--
Piotr Piwko
http://www.embedded-engineering.pl/

MRE

unread,
Jun 18, 2009, 4:47:17 AM6/18/09
to

Cool video! ;-)

This thing looks really nice.

Cheers,

Marc

tmo...@acm.org

unread,
Jun 23, 2009, 6:02:42 PM6/23/09
to
> GNAT GPL for LEGO MINDSTORMS NXT
>
> http://libre.adacore.com/libre/tools/mindstorms/
Last Thursday I registered so I could download this. Haven't received
a "here's your code" email yet. Are they just slow?

Jeffrey Creem

unread,
Jun 23, 2009, 11:15:01 PM6/23/09
to

Not normally. Sounds like it got caught in the spam blocker someplace.
My son signed up on Friday I think and had the activation email in a few
minutes.

I was pretty excited to get him going on this but it is still pretty raw
and not quite ready for prime time. Still I think it is good to get it
out there early.

Install process is a bit confusing and I don't quite understand all of
the actual prerequisites. The direct link to on file in nxtOSEK makes
you think that is all you need (perhaps it is) but nxtOSEK itself has a
rather a number of prerequisites that you may or may not also need.
The documentation talks about going to the examples directory and doing
a make but the AdaCore Mindstorms install (while somewhat complete in
that it bundles GPS and the compiler in one installer) does not include
make.

I fear that if you are using Vista you will be out of luck given the
current limitations with the nxtOSEK USB driver...Or maybe not. there
are several options for that OS but it is not really clear if you have
to use the one that requires libUSB with the AdaCore stuff.

I'd really be interested in hearing if anyone gets this going who has
not already spent a lot of time with nxtOSEK. Looks like a good first
effort to build on. Hopefully the effort is not wasted because a new
mindstorms is coming out in the fall. It would be a shame if the new
mindstorms obsoleted all of this before it ever got working in a
semi-turnkey manner.

Matteo Bordin

unread,
Jun 24, 2009, 3:00:09 AM6/24/09
to
On Jun 24, 5:15 am, Jeffrey Creem <j...@thecreems.com> wrote:
> tmo...@acm.org wrote:
> >> GNAT GPL for LEGO MINDSTORMS NXT
>
> >>http://libre.adacore.com/libre/tools/mindstorms/
> >   Last Thursday I registered so I could download this.  Haven't received
> > a "here's your code" email yet.  Are they just slow?
>
> Not normally. Sounds like it got caught in the spam blocker someplace.
> My son signed up on Friday I think and had the activation email in a few
> minutes.


I agree. Let us know if you do not receive the confirmation mail.


>
> I was pretty excited to get him going on this but it is still pretty raw
> and not quite ready for prime time. Still I think it is good to get it
> out there early.
>
> Install process is a bit confusing and I don't quite understand all of
> the actual prerequisites. The direct link to on file in nxtOSEK makes
> you think that is all you need (perhaps it is) but nxtOSEK itself has a
> rather a number of prerequisites that you may or may not also need.
> The documentation talks about going to the examples directory and doing
> a make but the AdaCore Mindstorms install (while somewhat complete in
> that it bundles GPS and the compiler in one installer) does not include
> make.


I suggest to have a look at the root README file you see in the
download page.
It contains all required information.


> I'd really be interested in hearing if anyone gets this going who has
> not already spent a lot of time with nxtOSEK. Looks like a good first
> effort to build on. Hopefully the effort is not wasted because a new
> mindstorms is coming out in the fall. It would be a shame if the new
> mindstorms obsoleted all of this before it ever got working in a
> semi-turnkey manner.

We tested it with interns (not the one who contributed to the
release ;-) ) and
the installation process, while not completely automated, seemed
reasonable.

I am also investigating on the spec of NXT 2.0.

MRE

unread,
Jun 27, 2009, 9:48:09 AM6/27/09
to
I managed to get something to compile, however I wind up with a
somewhat
cryptic (for me at least) error message, that ld causes an error in
Win XP.
I'll tinker some more and get back to you.

Cheers Marc

Mehdi

unread,
Jun 28, 2009, 9:11:07 AM6/28/09
to
To start to programm, with your opinion, wich robot should I buy them ?

MRE

unread,
Jun 29, 2009, 2:01:11 AM6/29/09
to
Ha ha! Success! I got something to compile and could download it.
Now for the really complicated things ;-)

I have to say though, that the README file that Matteo refers to
is slightly parsimonious. It should mention, that you ought to
have cygwin running on your windows machine together with the libusb
library.

You might want to follow
http://lejos-osek.sourceforge.net/installation.htm
this helps also for GNAT.


Headscratcher: I can only compile using MinGW (Cygwin doesn't find the
cross gnatmake during "make" though it has no problems to find it
otherwise)
but I need Cygwin to download the stuff to the brick.
Nothing out of order though.

Now back to the end-of-term-frenzy. I hope to have more time for my
new toy in
a couple of days...

Cheers,

Marc

@Mehdi: to use GNAT for Mindstorms, you should get the basic set from
Lego.

Matteo Bordin

unread,
Jun 30, 2009, 7:05:01 AM6/30/09
to
On Jun 29, 8:01 am, MRE <Marc.Enzm...@web.de> wrote:
> Ha ha! Success! I got something to compile and could download it.
> Now for the really complicated things ;-)
>
> I have to say though, that the README file that Matteo refers to
> is slightly parsimonious. It should mention, that you ought to
> have cygwin running on your windows machine together with the libusb
> library.

This information is part of the installation of nxtOSEK, as you say
down here.
It is however a good suggestion to improve our documentation.

>
> You might want to followhttp://lejos-osek.sourceforge.net/installation.htm


> this helps also for GNAT.
>
> Headscratcher: I can only compile using MinGW (Cygwin doesn't find the
> cross gnatmake during "make" though it has no problems to find it
> otherwise)
> but I need Cygwin to download the stuff to the brick.
> Nothing out of order though.

Did you follow the instructions at share/doc/mindstorms/README, as
cited in the root README file?
In particular: did you modified tool_gcc.mak and copied it in the
appropriate nxtOSEK folder?

MRE

unread,
Jul 1, 2009, 2:30:38 AM7/1/09
to

Hi Matteo,

Unless I put in a typo somewhere, I followed the instructions.
My assumption is, that I have some confusion in the PATH variable, so
that cygwin has trouble finding the compiler. I'll sort it out as soon
as I have a little more leisure time ;-)

Regards,

Marc

Matteo Bordin

unread,
Jul 1, 2009, 8:18:01 AM7/1/09
to

Yep, it seems some cygwin-driven trouble - which means it would also
be difficult to reproduce,
but will try anyway. Let me know if you sort out the problem.

Thanks for your feedback.

0 new messages