Go to Post The fact of the matter comes down to this: No matter what you are interested in, you can always encourage others. - Amanda Morrison [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 09-04-2010, 16:02
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Exclamation How to NOT use WindRiver

Hi,
Frankly, I am rather tired of all the things WindRiver complains about, from stinkin' license problems to debugging difficulties.

So is there a way to just use the WindRiver compiler as standalone and be able to successfully download/edit code w/o the WindRiver IDE?

I've heard its been done...

THANKS!!!

-Masoug
__________________

JabbaScript
Reply With Quote
  #2   Spotlight this post!  
Unread 09-04-2010, 16:07
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: How to NOT use WindRiver

I would love to also know if it's possible, and if so, how it's done
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
Reply With Quote
  #3   Spotlight this post!  
Unread 09-04-2010, 17:06
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: How to NOT use WindRiver

I believe windriver uses makefiles, so if you just run make on the program it should build. Then FTP the file to the cRIO
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #4   Spotlight this post!  
Unread 09-04-2010, 17:45
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: How to NOT use WindRiver

Quote:
Originally Posted by masoug View Post
Hi,
Frankly, I am rather tired of all the things WindRiver complains about, from stinkin' license problems to debugging difficulties.
So is there a way to just use the WindRiver compiler as standalone and be able to successfully download/edit code w/o the WindRiver IDE?
I've heard its been done...
Honestly, if you can't get it right within the IDE, you stand little chance of getting it right outside.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
Reply With Quote
  #5   Spotlight this post!  
Unread 29-04-2010, 03:33
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: How to NOT use WindRiver

FWIW, I don't use Workbench for much of my library development. I haven't been able to figure out how to generate a static library successfully in the tool. I'm sure it can be done, but I just haven't found the right project and sequence of steps.

So, it turns out that you can do all of the development "old school" if you're so inclined. The way it's done is to open a host shell from the Workbench menu bar. This opens at DOS box that has sourced the environment variables needed to run the tool from the command line. From there, Makefiles can be written to compile and build any code you want.

Now, this does not side step any licensing issues you may be having because Wind's version of the GNU compiler has a front end that checks the license before the GNU compiler actually starts to run. However, once you have the compiled code you can use it as a link target for other projects in or out of Workbench.

As for getting code onto the cRIO, filezilla works nicely. The cRIO is running an FTP server on port 21. If you open a connection to the cRIO and log in, you'll see the Flash file system on the cRIO. In order to automatically start your code, you need to copy it to the cRIO as FRC_UserProgram.out (or something obvious like that -- I dont' have the cRIO in front of me and it's late, so my memory is failing me). The FTP is essentially what the "Deploy Code" button is doing in Workbench.

Now, I share these techniques with you in the hope that it will "de-mystify" how the FIRST control system works. But, as GVarndell pointed out, if you're having trouble with Workbench, then working outside of Workbench will likely not make anything any easier for you. FWIW, I've also been successful in generating code in Linux for the cRIO. But, that's a whole other kettle of fish and not for the faint of heart.

HTH,

Mike
Reply With Quote
  #6   Spotlight this post!  
Unread 30-04-2010, 17:12
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: How to NOT use WindRiver

FWIW, the GNU toolchain targeted to the cRIO/VxWorks is available (along with a tutorial) here.

Haven't tried it myself so there may be some tweaks required to the makefile, etc - but seems like it should be pretty straightforward.

- Ron
Team #2607 controls mentor
Reply With Quote
  #7   Spotlight this post!  
Unread 30-04-2010, 17:44
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How to NOT use WindRiver

The easiest way to not use WindRiver is to use LabVIEW.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-05-2010, 08:29
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: How to NOT use WindRiver

Quote:
Originally Posted by Alan Anderson View Post
The easiest way to not use WindRiver is to use LabVIEW.
Or NetBeans.

This reminds me of how not to be seen: http://www.youtube.com/watch?v=zekiZYSVdeQ
__________________
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
  #9   Spotlight this post!  
Unread 01-05-2010, 17:03
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Re: How to NOT use WindRiver

Quote:
This reminds me of how not to be seen: http://www.youtube.com/watch?v=zekiZYSVdeQ
How is this related to FIRST?

-Masoug
__________________

JabbaScript
Reply With Quote
  #10   Spotlight this post!  
Unread 01-05-2010, 21:04
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: How to NOT use WindRiver

Quote:
Originally Posted by masoug View Post
How is this related to FIRST?

-Masoug
it isn't. Alans post reminded me of this funny sketch: The easiest way to not be seen is to ...
__________________
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
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
WindRiver not connecting to robot mika.perlin C/C++ 0 27-01-2010 21:48
quation Holonomic Drive use Windriver C++ yara92 C/C++ 3 01-01-2010 06:18
pic: how not to use a suction cup Sterno Chit-Chat 28 11-02-2007 17:00
Ethics 101: To re-use or not to re-use? aaeamdar General Forum 87 07-12-2006 19:10


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