Go to Post A couple of times during our matches, our HOSTBOT had a GAME PIECE right there ready to HANG, but the darn PEG dodged out of the way - MrForbes [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 26-12-2012, 12:07
Michael_Lee Michael_Lee is offline
Registered User
FRC #2976
 
Join Date: Jan 2012
Location: Issaquah, WA
Posts: 21
Michael_Lee is an unknown quantity at this point
Using WindRiver from the command line?

Is there some way of compiling and deploying code from the command line? Our non-programming teammates want to be able to deploy and use code if none of our programmers are present. I've showed several of them how to do it from WindRiver/wrote step-by-step instructions, but I'm looking for a way to simplify the process.

I'm fairly certain deploying the code is just a matter of using ftp to transfer the compiled file to the cRio. Which folder should I place the compiled file in?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-12-2012, 20:12
apples000's Avatar
apples000 apples000 is offline
Registered User
no team
 
Join Date: Mar 2012
Rookie Year: 2012
Location: United States
Posts: 222
apples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant future
Re: Using WindRiver from the command line?

I'm not sure about windriver, but with java, there's several other things that are sent to the robot such as a manifest file which tells the robot what code to run when it starts up.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-12-2012, 22:08
Michael_Lee Michael_Lee is offline
Registered User
FRC #2976
 
Join Date: Jan 2012
Location: Issaquah, WA
Posts: 21
Michael_Lee is an unknown quantity at this point
Re: Using WindRiver from the command line?

I think I figured out at least the first part. Assuming that your WindRiver install is located at C:\WindRiver and your project is located in C:\WindRiver\workspace\SimpleTemplate, you need to...
  1. Add the following to your path (to compile, you need to use gnu make, bash, and other assorted linux console utilities. The following directories contains Windows versions of those)
    • C:\WindRiver\gnu\3.4.4-vxworks-6.3\x86-win32\bin
    • C:\WindRiver\utilities-1.0\x86-win32\bin
    • C:\WindRiver\setup\x86-win32\bin
  2. cd to C:\WindRiver\workspace\SimpleTemplate\PPC603gnu
  3. Type
    Code:
    set WIND_BASE=C:\WindRiver\vxworks-6.3
  4. Run the following command:
    Code:
    make --no-print-directory BUILD_SPEC=PPC603gnu DEBUG_MODE=1 TRACE=1

I'm still uncertain about the second part though.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2013, 16:35
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Using WindRiver from the command line?

Deploying the code is just a matter of (from ucpp)

Code:
wput -u $CPP_PROJECT_NAME/Debug/$CPP_PROJECT_NAME.out ftp://anonymous@$DEPLOY_IP/ni-rt/system/FRC_UserProgram.out
Or the moral equivalent (where wput -u is copy over ftp)
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 14:02.

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