Go to Post Do I think the bar is too high? I think impossible dreams and lofty goals are a key part of FIRST; the "top" being extremely far away only pushes people farther. - Chris is me [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2011, 00:25
David El David El is offline
Registered User
FRC #2625
 
Join Date: Jan 2011
Location: Mississauga, ON
Posts: 4
David El is an unknown quantity at this point
Downloading Code Predominantly

Alright so we can deploy the code and run the robot and everything however we can not get the code to stay on the robot after we restart the machine. We are currently downloading it onto the ram and we are aware that thats not the way to make it stay but we can not figure out the other way in order to have it saved on there. We researched a bit and found that we have to press download in win river, however it asks for a "ELF file?" and we have no such file with that extension in our entire project.

Help would be much appreciated,
David from team 2625
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2011, 08:47
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Downloading Code Predominantly

It looks like these folks, http://www.chiefdelphi.com/forums/sh...ad.php?t=91896, are having a similar issue. To deploy the code you should go to Window->Preferences->FIRST Downloader Preferences. Set you team number and browse for the .out file that is created when you compile your project. When that is done goto FIRST->Deploy. Reboot your cRIO and it should be running your program.

An ELF file is any executable file in a unix/linux type OS such as vxWorks. Also there is no concept of a file extension in these types of OS's. File extensions only exist in Windows (and maybe Macs, not sure). So that means the .out file from your project is an ELF file. Hope that helps, good luck!
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2011, 14:44
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Downloading Code Predominantly

Window>preferences>FIRST downloader and enter you team, the file is (project dir)\PPC603gnu\Debug\Something.out (or something like that)
close that, and go to FIRST>Deploy
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2011, 15:04
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Downloading Code Predominantly

I believe the post above will solve your problem.

Background:
ELF refers to "Executable and Linkable Format". WindRiver is asking "hey man, where can I find the actual binary code to put on the robot?". The file you're inputting there (the .out file) is the binary code for your robot software, and is (I believe) ELF format, despite the .out extension.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi