Go to Post If you pay attention to every nut job on ChiefDelphi, you'll never reach a decision. - JesseK [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 12-01-2010, 20:02
GabeRC1717's Avatar
GabeRC1717 GabeRC1717 is offline
Registered User
FRC #1717 (D'Penguineers)
Team Role: Student
 
Join Date: Oct 2008
Rookie Year: 2009
Location: Goleta
Posts: 9
GabeRC1717 is on a distinguished road
Running a .out file from 2009 with a 2010 image

Hey,

Can anyone confirm that if I image a cRIO from last year to the new 2010 image with the development environment set to C++ that I will still be able to deploy a .out file using last year's WPILib? If this is not the case can I use the new cRIO imaging tool with the image .zip from last year to re-apply the 2009 C++ image?
__________________
----------
Gabe
grivescorbett@dpengineering.org
Team 1717, http://dpengineering.org
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2010, 22:43
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Running a .out file from 2009 with a 2010 image

Quote:
Originally Posted by GabeRC1717 View Post
Hey,

Can anyone confirm that if I image a cRIO from last year to the new 2010 image with the development environment set to C++ that I will still be able to deploy a .out file using last year's WPILib? If this is not the case can I use the new cRIO imaging tool with the image .zip from last year to re-apply the 2009 C++ image?
I can't confirm that, but is there a reason why you can't just recompile the old code?

EDIT: I believe you can reimage the CRio with the old image, but you must use the 2009 version of the imaging tool.
__________________
Eric Haskins KC9JVH
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2010, 06:44
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: Running a .out file from 2009 with a 2010 image

You probably won't be able to run 2009 binaries (the .out file) on a 2010 image.

The image includes the WPILib, which has changed significantly in the year since. Your 2009 code will be linked to look for and use the 2009 library, and when it tries to call into WPILib functions, you'll probably get symbol errors as output.

We weren't even able to run code compiled for the 2010 v5 image on a 2010 v19 cRio, which we tried by accident by forgetting to recompile the code after we updated everything.

I don't see any reason why re-imaging the cRio wouldn't work though. Try that. But remember to re-image it back to 2010 v19 after for development for this year.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2010, 13:58
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Running a .out file from 2009 with a 2010 image

Quote:
Originally Posted by GabeRC1717 View Post
Hey,

Can anyone confirm that if I image a cRIO from last year to the new 2010 image with the development environment set to C++ that I will still be able to deploy a .out file using last year's WPILib?
No. Any image which changes the FPGA (most do) will need a corresponding change to the development build environment. The version of WPILib used by Windriver must match the FPGA version in the cRIO.
If not, you will get errors at runtime about missing symbols when your .out is loaded (you'll only see these in debug load, or in console output when deployed).

Quote:
If this is not the case can I use the new cRIO imaging tool with the image .zip from last year to re-apply the 2009 C++ image?
Yes. More precisely, image with the version of the image that corresponds to the WPIlib your .out file was built against.

If you still have your 2009 source code, you may be better off just recompiling it in the 2010 environment. The API changes from 2009->2010 were minimal. Most teams' 2009 code should compile and run as-is in the 2010 environment without changes, enabling the use of a single cRIO image version.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2010, 16:19
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Running a .out file from 2009 with a 2010 image

Heydowns is exactly correct. To ensure that you don't build against an incompatible version of the FPGA image, each new version of the FPGA code uses a namespace with a unique identifier. When you load a 2009 program into a 2010 imaged cRIO, you'll see that all the FPGA (ChipObject library) entry points will pop up as undefined.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Help Needed! Running Out of Time! TheDarkDuck Motors 1 12-02-2009 21:18
HELP!!!EMERGENCY!!!RUNNING OUT OF TIME!!! furiousgeorge Programming 7 12-02-2009 14:05
Running Out of Tetras psquared89 General Forum 28 27-04-2005 12:45
Joysticks...running out!!! archiver 2001 0 24-06-2002 02:37
Time is running out... archiver 2001 0 24-06-2002 00:04


All times are GMT -5. The time now is 13:55.

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