View unanswered posts | View active topics It is currently Sat Nov 01, 2014 4:27 am






Reply to topic  [ 4 posts ] 
RobotC hex files location? 
Author Message
Rookie

Joined: Sat Sep 20, 2008 12:02 am
Posts: 11
Post RobotC hex files location?
Hello,
Does anyone know where the hex files are stored when RobotC compiles? I'd like to be able to download the hex file directly to the NXT from Linux using a Perl communications package. Right now, I've got RobotC running in Linux, but I can't communicate with NXT. The Perl library will let me communicate, but I don't know where to find the HEX file in order to try transferring it.

Any help on this one would be appreciated.


Sat Sep 27, 2008 7:29 pm
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post Re: RobotC hex files location?
Currently the hex files are not stored on PC disk. They are only sent directly from the ROBOTC IDE to the NXT. I partially implemented at one time an option to also save the HEX files to PC. I'll look into how easy it is to finish it.

Please help me understand how you've managed to get ROBOTC running on LINUX. Can you describe the configuration please? I've had an interest to get ROBOTC working on LINUX but it has always seemed like an overwhelming task.

Where can I find details on the "PERL library" that you plan to use?

I'm guessing the reason that ROBOTC can't communicate with the NXT is that while you've managed to get ROBOTC somehow running on LINUX the Fantom.dll file is not working. Fantom.dll is developed by National Instruments and, AFAIK, they only support a Windows and MacOS version.

Even if you get HEX files and transfer you will miss a lot of the ROBOTC functionality in terms of interactive communications with the NXT. This is most prominent in the debugger capabilities of ROBOTC; there are also a number of utilities built into ROBOTC for manipulating and configuring the NXT firmware that are useful.


Sat Sep 27, 2008 11:32 pm
Profile
Rookie

Joined: Sat Sep 20, 2008 12:02 am
Posts: 11
Post Re: RobotC hex files location?
I'm just running the RobotC in WINE. There's a fellow named Michael Collin's who came up with a Perl package that allows you to communicate with NXT by USB or bluetooth. I have to admit that it's actually several of my students that set things up, but I believe I saw them communicate with NXT with RobotC firmware loaded via the Perl package in Linux.

Here's the link to the Perl packages by Michael Collin's:
http://search.cpan.org/~collins/

The nice thing about Collin's package is that it does allow for direct control of the NXT. So, possibly there might be something in there that could help you (and the rest of us).

Also, I've read discussions about using this code that let's you communicate with NXT from Linux through Bluetooth:
http://www.quietearth.us/nxtlibc.htm

The person who wrote nxtlibc says that they were able to learn a few tricks from Collin's so possibly there is some value in looking at the work of these folks.

If you do find a way to produce a HEX file, I would definitely be interested.
Thank you!


Sun Sep 28, 2008 12:29 am
Profile
Rookie

Joined: Sun Sep 21, 2008 10:34 am
Posts: 4
Post Re: RobotC hex files location?
I know there is a Python package called nxt_python that i was able to get a Nintendo Wii-mote to control my NXT. The Wii-mote connected to my pc with this python script running and the PC would send the bluetooth messages to the NXT. This may be useful in trying to port some of the functionality to Linux.


Sun Sep 28, 2008 9:54 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.